RegexMatchError: (\W[\'"]?t[\'"]?: ?[\'"](.+?)[\'"]) had zero matches
See original GitHub issueTried adding the pattern into cipher.py to no effect… help please?
pytube==9.4.0, Python 3.7.1
Traceback (most recent call last):
File "filename.py", line 13, in <module>
yt = YouTube(link, on_progress_callback=progress_function)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pytube/__main__.py", line 88, in __init__
self.prefetch_init()
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pytube/__main__.py", line 96, in prefetch_init
self.prefetch()
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pytube/__main__.py", line 170, in prefetch
age_restricted=self.age_restricted,
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pytube/extract.py", line 121, in video_info_url
group=0,
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pytube/helpers.py", line 65, in regex_search
.format(pattern=pattern),
pytube.exceptions.RegexMatchError: regex pattern (\W[\'"]?t[\'"]?: ?[\'"](.+?)[\'"]) had zero matches
Issue Analytics
- State:
- Created 4 years ago
- Reactions:9
- Comments:44 (1 by maintainers)
Top Results From Across the Web
RegexMatchError: (\W[\'"]?t[\'"]?: ?[\'"](.+?)[\'"]) had zero matches
Tried adding the pattern into cipher.py to no effect... help please? pytube==9.4.0, Python 3.7.1 Traceback (most recent call last): File ...
Read more >pytube.exceptions.RegexMatchError: regex pattern had 0 ...
I've done this and got the warning WARNING: The script pytube.exe is installed in 'C:\Users\stemb\AppData\Local\Programs\Python\Python37\Scripts ...
Read more >How to use the pytube.exceptions.RegexMatchError function ...
RegexMatchError examples, based on popular ways it is used in public projects. ... raise RegexMatchError( 'regex pattern ({pattern}) had zero matches' ...
Read more >regex pattern ((?:v=|\/)([0-9A-Za-z_-]{11}).*) had zero matches
pytube.exceptions.RegexMatchError: regex pattern ((?:v=|\/)([0-9A-Za-z_-]{11}).*) had zero matches.
Read more >Why do I get zero matches on Tinder? It's been a ... - Quora
Yes, there are some serious people on Tinder, but it has a reputation for a reason. When it comes to real profiles, men...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Go to
extract.py
line 116 and change the following to look like:Notice that we’re just commenting out the stuff related to
t
. I don’t know why this works, and I’m guessing there are other bad side-effects, but it got me through my needs for the day.All fixed, fixed rating + views as well