question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error when trying to download a song

See original GitHub issue

Hello, 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:closed
  • Created 3 years ago
  • Comments:15

github_iconTop GitHub Comments

1reaction
sybessonnecommented, Nov 9, 2020

It works.

Thank you very much

0reactions
tfdahlincommented, Nov 9, 2020

@sbessonneau you can install the most recent version from source by running python -m pip install git+https://github.com/nficano/pytube

Read more comments on GitHub >

github_iconTop Results From Across the Web

Music Downloading Error Mac - Apple Support Communities
I'm trying to download music but every time I try, I get an error message ("There was a problem downloading "Song Title".
Read more >
Fix file download errors - Google Chrome Help
If you get an error message on Chrome when you try to download apps, themes, extensions, or other files, try these fixes.
Read more >
How to Fix iTunes Download Error Tap to Retry - FoneDog
Open iTunes and connect your iOS device using a USB cable. Go to Store, scroll down and find Purchased. Click Available Downloads. Download...
Read more >
Fix the Issue “YouTube Music Not Downloading” in 3 Ways
First, check whether the songs in this playlist are available. Sometimes some songs become unavailable on the YouTube Music app due to copyright ......
Read more >
13 Best Ways to Fix the Apple Music Not Downloading Songs ...
Apple Music has an option that automatically downloads songs as soon as you add them to your library. If the problem keeps happening...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found