-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RegexMatchError: (\W[\'"]?t[\'"]?: ?[\'"](.+?)[\'"]) had zero matches #381
Comments
Same issue here... Traceback (most recent call last):
File "c:\users\geek\appdata\local\programs\python\python37-32\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "c:\users\geek\appdata\local\programs\python\python37-32\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Users\Geek\AppData\Local\Programs\Python\Python37-32\Scripts\pytube.exe\__main__.py", line 9, in <module>
File "c:\users\geek\appdata\local\programs\python\python37-32\lib\site-packages\pytube\cli.py", line 58, in main
display_streams(args.url)
File "c:\users\geek\appdata\local\programs\python\python37-32\lib\site-packages\pytube\cli.py", line 182, in display_streams
yt = YouTube(url)
File "c:\users\geek\appdata\local\programs\python\python37-32\lib\site-packages\pytube\__main__.py", line 88, in __init__
self.prefetch_init()
File "c:\users\geek\appdata\local\programs\python\python37-32\lib\site-packages\pytube\__main__.py", line 96, in prefetch_init
self.prefetch()
File "c:\users\geek\appdata\local\programs\python\python37-32\lib\site-packages\pytube\__main__.py", line 170, in prefetch
age_restricted=self.age_restricted,
File "c:\users\geek\appdata\local\programs\python\python37-32\lib\site-packages\pytube\extract.py", line 121, in video_info_url
group=0,
File "c:\users\geek\appdata\local\programs\python\python37-32\lib\site-packages\pytube\helpers.py", line 65, in regex_search
.format(pattern=pattern),
pytube.exceptions.RegexMatchError: regex pattern (\W[\'"]?t[\'"]?: ?[\'"](.+?)[\'"]) had zero matches``` |
Also have this exact same error with the exact same log, tested on two different devices both running the newest version of Pytube. Worked perfectly fine yesterday. This happens when I attempt YouTube(url) Edit: In python 2.7.9 |
Same error here. Python 3.6 |
Same error occurs today. Does Youtube update its html content? |
yeah it seems like this @jhd4tmr and library Regex match should be updated |
So do we have to wait for the update? |
It looks like comment out the related part in codes as a temploary solution works for me.
|
Same error here. Python 3.5 |
Same here as well |
Hi, |
Go to
Notice that we're just commenting out the stuff related to |
Yeah commenting out those lines seems to fix for me. |
Same issue here. Python 3.7.2 |
Same error here... |
Same error! Two weaks ago was working |
It is worked, but waiting for official fix |
same problem here,and @rriley's fix worked. waiting for new production release, but this works for now. Thanks Ryan! |
quick and dirty :D works! tnx. hoping for an official fix soon. |
Same error! Two days ago was working! |
Same error! Pytube 9.4.0 It looks like the html doesn't contain expected elements any more. |
Same error as well. Python 3.7.3 and Pytube 9.4.0 |
Same error on 3.7.3 |
yt = YouTube('https://www.youtube.com/watch?v=BLF-f4kUtAw') Python 3.7.3; Pytube 9.4.0 Had the same problem earlier, about a week or more ago, some attempts were successful, though. Today, no luck at all. |
Same for me 9.4.0. Python 3.7 |
Same for me 9.4.0. Python 3.5 |
same for me 9.4.0 Python 2.7 |
Hi, I can resolve this error. for MAC with Python3.7 try this command if result is empty, try this command. and, try it one time [result] Please try it 😊😊 Cause As a result, the root certificate installed on the OS is also not referenced. |
must do also this work.
|
Moreover, object like views,rating doesnt work |
u sure you commented out all these lines?
as well as
|
@ulfgj yes I did, this is a new error that showed up after I commented out these lines |
Worked fine here. Thanks. |
I tried the #t thing... it works for some videos but for others not!? python 3.7 |
This solution is worked for some videos, others are not. |
This fix finally worked for me to! thank you! |
Thanks! It works! |
No one try to debugging the script? I'm affraid youtube make the link not shown before we do something, example click the play button. if the author answer what kind of link he search in youtube, maybe we can help him faster. if not we should do a debugging process, that mean try every step of script and see what the result to understood how this script working. |
Hi folks, sorry for not being responsive here, I have become incredibly busy in recent months and haven't been able to support the project as much as I would like. Let me look into this now. I'll post an update for everyone shortly. |
All fixed, fixed rating + views as well |
yay nick!
…On Wed, 1 May 2019, 17:20 Nick Ficano, ***@***.***> wrote:
Closed #381 <#381>.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#381 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AA7KIL7D6CQD6AKWWC72223PTGYJ7ANCNFSM4HH7G4CA>
.
|
Fixed in 5f4016b |
Temporary fix to issue pytube#381. Updating pytube to handle Youtube's new, updated URLs. Simply commenting out the lines that throw an error when trying to download in video_info_url function.
for me it was not that obvious, so I let it here just in case... It's already merged in master, so Thank you! |
great!!! |
Tried adding the pattern into cipher.py to no effect... help please?
pytube==9.4.0, Python 3.7.1
The text was updated successfully, but these errors were encountered: