【发布时间】:2020-07-28 20:05:54
【问题描述】:
我正在尝试制作一个从 youtube 下载视频的脚本,但我不断收到以下错误。
>>> from pytube import YouTube
>>> vid = YouTube("https://www.youtube.com/watch?v=dfnCAmr569k")
Traceback (most recent call last):
File "<stdin>", line1, in <module>
File "/home/user/.local/lib/python3.8/site-packages/pytube/__main__.py", line 92 in __init__
self.descramble()
File "/home/user/.local/lib/python3.8/site-packages/pytube/__main__.py", line 140 in descramble
apply_signature(self.player_confing_args, fmt, self.js)
File "/home/user/.local/lib/python3.8/site-packages/pytube/extract.py", line 225 in apply_signature
cipher = Cipher(js=js)
File "/home/user/.local/lib/python3.8/site-packages/pytube/cipher.py", line 31 in __init__ var, _ =
self.transform_plan[0].split(".")
ValueError: too many values to unpack (expected 2)
【问题讨论】:
标签: python-3.x pytube