【问题标题】:python pytube module: streams not workingpython pytube模块:流不工作
【发布时间】:2022-12-21 02:22:59
【问题描述】:

我的代码,(我也尝试过其他网站的代码)

from pytube import YouTube
yt = YouTube("https://www.youtube.com/watch?v=oS8lASbvlpI")
myVideoStreams = yt.streams
print(myVideoStreams)

我得到的错误,

raise RegexMatchError(
pytube.exceptions.RegexMatchError: __init__: could not find match for ^\w+\W

【问题讨论】:

标签: python pytube


【解决方案1】:

当我使用版本 10.6.1 的 pytube 时,我遇到了同样的问题。

我只是通过首先卸载它来更新它:

pip uninstall pytube

然后通过以下方式重新安装它:

pip install pytube

我目前有版本为 12.1.2 的 pytube,问题已为我解决,希望你也能得到解决。

【讨论】:

    猜你喜欢
    • 2021-02-01
    • 1970-01-01
    • 1970-01-01
    • 2014-08-25
    • 2014-03-24
    • 2010-12-08
    • 2019-05-12
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多