|
您好,我照9-3頁的程式碼輸入,得到以下的結果: runfile('C:/Users/kotori/.spyder-py3/temp.py', wdir='C:/Users/kotori/.spyder-py3') Traceback (most recent call last):
File "<ipython-input-1-ad4e140df4be>", line 1, in <module> runfile('C:/Users/kotori/.spyder-py3/temp.py', wdir='C:/Users/kotori/.spyder-py3')
File "C:\Users\kotori\Anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 786, in runfile execfile(filename, namespace)
File "C:\Users\kotori\Anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 110, in execfile exec(compile(f.read(), filename, 'exec'), namespace)
File "C:/Users/kotori/.spyder-py3/temp.py", line 5, in <module> yt.url = "https://www.youtube.com/watch?v=CbzQJB-T41I"
File "C:\Users\kotori\Anaconda3\lib\site-packages\pytube\api.py", line 117, in url self.from_url(url)
File "C:\Users\kotori\Anaconda3\lib\site-packages\pytube\api.py", line 227, in from_url signature = self._get_cipher(stream_map['s'][i], js_url)
File "C:\Users\kotori\Anaconda3\lib\site-packages\pytube\api.py", line 417, in _get_cipher 'issue on GitHub: {0}'.format(e))
CipherError: Couldn't cipher the signature. Maybe YouTube has changed the cipher algorithm. Notify this issue on GitHub: local variable 'func' referenced before assignment
有的影片可以正常下載,但是有的就會出現這個錯誤,請問這是什麼原因? |