Pytube only works periodically (KeyError: 'assets')
问题 Five out of ten times Pytube will send me this error when attempting to run my small testing script. Here's the script: import pytube import urllib.request from pytube import YouTube yt = YouTube('https://www.youtube.com/watch?v=3NCyD3XoJgM') print('Youtube video title is: ' + yt.title + '! Downloading now!') Here's what I get: Traceback (most recent call last): File "youtube.py", line 6, in <module> yt = YouTube('https://www.youtube.com/watch?v=3NCyD3XoJgM') File "C:\Users\test\AppData\Local