Open okanyesil opened 3 years ago
here is the solution https://github.com/nficano/pytube/issues/777
it didnt help me
What error are you getting?
Same error
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
Copy code from codebas still not work for me, too...
what version of python are you using?
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'