使用以下代码使用 PyTube 库下载视频时:
yt.streams.get_highest_resolution().download("PATH", f"PATH.mp4")
Run Code Online (Sandbox Code Playgroud)
我收到错误:
raise RegexMatchError(caller="get_transform_object", pattern=pattern)
pytube.exceptions.RegexMatchError: get_transform_object: could not find match for var for={(.*?)};
Run Code Online (Sandbox Code Playgroud)
我在 Stack Overflow 和 PyTube 的 Git 存储库中看到了很多修复,但它们似乎涉及cypher.py. 我想知道如何交替get_transform_object班级cypher.py以匹配正则表达式检查。