from pytube import YouTube
YouTube('https://www.youtube.com/watch?v=5YceQ8YqYMc')
Error:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File ".local/lib/python3.6/site-packages/pytube/__main__.py", line 92, in __init__
self.descramble()
File ".local/lib/python3.6/site-packages/pytube/__main__.py", line 132, in descramble
apply_descrambler(self.player_config_args, fmt)
File ".local/lib/python3.6/site-packages/pytube/extract.py", line 281, in apply_descrambler
formats = json.loads(stream_data["player_response"])["streamingData"]["formats"]
KeyError: 'formats'
Installation (Python 3.6.9, pytube3-9.6.4):
Test:
Error: