get-pytube / pytube3

A lightweight, dependency-free Python 3 library (and command-line utility) for downloading YouTube Videos.
https://pytube3.readthedocs.io
Other
178 stars 55 forks source link

New parsing issue. #77

Open guruofnibiru opened 4 years ago

guruofnibiru commented 4 years ago

Traceback (most recent call last): File "yt-download.py", line 21, in youtube_download yt = YouTube(yt_url) File "/Users/ray/Documents/Code/youtube/env/lib/python3.8/site-packages/pytube/main.py", line 77, in init self.video_id = extract.video_id(url) File "/Users/ray/Documents/Code/youtube/env/lib/python3.8/site-packages/pytube/extract.py", line 80, in video_id return regexsearch(r"(?:v=|\/)([0-9A-Za-z-]{11}).", url, group=1) File "/Users/ray/Documents/Code/youtube/env/lib/python3.8/site-packages/pytube/helpers.py", line 34, in regex_search raise RegexMatchError(caller="regex_search", pattern=pattern) pytube.exceptions.RegexMatchError: regexsearch: could not find match for (?:v=|\/)([0-9A-Za-z-]{11}).

tooxo commented 4 years ago

Can you provide the url you used while getting this error?