could not find match for config_patterns, setconfig_patterns
See original GitHub issueHere is my code :
from pytube import YouTube
l = "https://www.youtube.com/watch?v=ixZDTiXiHsc"
yt = YouTube(l)
I get this error, I tried other videos, some works, but some doesn’t and have the same error
Traceback (most recent call last):
File "test.py", line 32, in <module>
yt = YouTube(link)
File "/usr/lib/python3.8/site-packages/pytube/__main__.py", line 102, in __init__
self.prefetch()
File "/usr/lib/python3.8/site-packages/pytube/__main__.py", line 194, in prefetch
self.js_url = extract.js_url(self.watch_html)
File "/usr/lib/python3.8/site-packages/pytube/extract.py", line 180, in js_url
base_js = get_ytplayer_config(html)['assets']['js']
File "/usr/lib/python3.8/site-packages/pytube/extract.py", line 279, in get_ytplayer_config
raise RegexMatchError(
pytube.exceptions.RegexMatchError: get_ytplayer_config: could not find match for config_patterns, setconfig_patterns
I tried with pytube
, pytube3
, pytube4
and pytubeX
Issue Analytics
- State:
- Created 3 years ago
- Comments:10
Top Results From Across the Web
pytube error - get_ytplayer_config: could not find match for ...
This error (RegexMatchError: get_ytplayer_config: could not find match for config_patterns) is due to Pytube known issue.
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
I see, thank you so much
Just following up on this real quick – this problem should be fixed in the latest version of pytube.