Skip to content
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

pytube 3 keyError: 'assets' #108

Open
okanyesil opened this issue Oct 28, 2020 · 7 comments
Open

pytube 3 keyError: 'assets' #108

okanyesil opened this issue Oct 28, 2020 · 7 comments

Comments

@okanyesil
Copy link

I am trying to download video from youtube. I installed pytube pip install pytube3. when I am trying to download a video it gives me this error
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\OKAN\AppData\Roaming\Python\Python38\site-packages\pytube_main_.py", line 91, in init
self.prefetch()
File "C:\Users\OKAN\AppData\Roaming\Python\Python38\site-packages\pytube_main_.py", line 183, in prefetch
self.js_url = extract.js_url(self.watch_html)
File "C:\Users\OKAN\AppData\Roaming\Python\Python38\site-packages\pytube\extract.py", line 143, in js_url
base_js = get_ytplayer_config(html)["assets"]["js"]
KeyError: 'assets'

@AssesBesses
Copy link

here is the solution
pytube#777

@okanyesil
Copy link
Author

it didnt help me

@AssesBesses
Copy link

What error are you getting?

@okanyesil
Copy link
Author

Same error

@AssesBesses
Copy link

Download the original pytube from github https://github.com/nficano/pytube
Don't use pip, download directly from github.
pytube works fine with up to python 3.7

@bigbear22941
Copy link

Copy code from codebas still not work for me, too...

@AssesBesses
Copy link

what version of python are you using?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants