Error when trying to download a song
See original GitHub issueHello, I would like to download 2 Indochine tracks with pytube. But I have an error. the link of the 2 tracks :
https://www.youtube.com/watch?v=DkffTDkSADI https://www.youtube.com/watch?v=XhFzKhTFY3I
When I go to youtube in Chrome, I see that I need to be connected to reach the track. I think this is the problem, but I don’t konw how to solve it.
That is the error in bash :
Traceback (most recent call last): File "test.py", line 17, in <module> yt = YouTube(url) File "/home/user/.local/lib/python3.6/site-packages/pytube/__main__.py", line 103, in __init__ self.descramble() File "/home/user/.local/lib/python3.6/site-packages/pytube/__main__.py", line 152, in descramble self.js_url = extract.js_url(self.embed_html) File "/home/user/.local/lib/python3.6/site-packages/pytube/extract.py", line 121, in js_url base_js = get_ytplayer_js(html) File "/home/user/.local/lib/python3.6/site-packages/pytube/extract.py", line 173, in get_ytplayer_js caller="get_ytplayer_js", pattern="js_url_patterns" pytube.exceptions.RegexMatchError: get_ytplayer_js: could not find match for js_url_patterns
Thank you for you reply
Issue Analytics
- State:
- Created 3 years ago
- Comments:15
Top GitHub Comments
It works.
Thank you very much
@sbessonneau you can install the most recent version from source by running
python -m pip install git+https://github.com/nficano/pytube