<commit_before>[![License](https://img.shields.io/badge/license-MIT-blue.svg)](http://kmonsoor.mit-license.org/)

# extract-video-id
Extract Video ID from a video url

### Examples of URLs

####  Valid

 *  'http://youtu.be/_lOT2p_FCvA',
 *  'www.youtube.com/watch?v=_lOT2p_FCvA&feature=feedu',
 *  'http://www.youtube.com/embed/_lOT2p_FCvA',
 *  'http://www.youtube.com/v/_lOT2p_FCvA?version=3&amp;hl=en_US',
 *  'https://www.youtube.com/watch?v=rTHlyTphWP0&index=6&list=PLjeDyYvG6-40qawYNR4juzvSOg-ezZ2a6',
 *  'youtube.com/watch?v=_lOT2p_FCvA',
      
####  Invalid:

 * 'youtu.be/watch?v=_lOT2p_FCvA'  [ because Youtube don't give any url like this ]<commit_msg>add support info<commit_after>[![License](https://img.shields.io/badge/license-MIT-blue.svg)](http://kmonsoor.mit-license.org/)

# extract-video-id
Extract Video ID from a video url and provides different codes from there.

### Currently, supports

 * Youtube
 * Vimeo



### Examples of URLs

####  Valid

 *  'http://youtu.be/_lOT2p_FCvA',
 *  'www.youtube.com/watch?v=_lOT2p_FCvA&feature=feedu',
 *  'http://www.youtube.com/embed/_lOT2p_FCvA',
 *  'http://www.youtube.com/v/_lOT2p_FCvA?version=3&amp;hl=en_US',
 *  'https://www.youtube.com/watch?v=rTHlyTphWP0&index=6&list=PLjeDyYvG<KEY>',
 *  'youtube.com/watch?v=_lOT2p_FCvA',
 *  'https://vimeo.com/groups/animation/videos/150618894/'
 *  'https://vimeo.com/150519302'
 *  etc.
      
####  Invalid:

 * 'youtu.be/watch?v=_lOT2p_FCvA'  [ because Youtube don't give any url like this ]
{'fraction_non_alphanumeric': 0.18791500664010624, 'fraction_numerical': 0.027888446215139442, 'mean_word_length': 4.420863309352518, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 6, 'lorem ipsum': 0, 'www.': 8, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1284449', 'n_tokens_mistral': 678, 'n_tokens_neox': 655, 'n_words': 73}