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}).
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}).