Traceback (most recent call last):
File "D:WORKpythonfilePythonFinalT1venvlibsite-packagespytube__main__.py", line 181, in fmt_streams
extract.apply_signature(stream_manifest, self.vid_info, self.js)
File "D:WORKpythonfilePythonFinalT1venvlibsite-packagespytubeextract.py", line 409, in apply_signature
cipher = Cipher(js=js)
File "D:WORKpythonfilePythonFinalT1venvlibsite-packagespytubecipher.py", line 33, in __init__
raise RegexMatchError(
pytube.exceptions.RegexMatchError: __init__: could not find match for ^w+W
解决方法:
进入cipher.py文件把第30行替换为
var_regex = re.compile(r"^$*w+W")



