python - 当youtube播放列表具有中文名称时,Python pytube播放列表为null

标签 python youtube pytube

当使用pl =播放列表(链接)时,

中文名称的播放列表:不正确-pl为空
https://www.youtube.com/watch?v=HSUaNt76UAM&list=RDHSUaNt76UAM

播放列表的工作原理:
https://www.youtube.com/watch?v=58PpYacL-VQ&list=UUd6MoB9NC6uYN2grvUNT-Zg

是因为编码问题?但是pytube在下载带有中文名称的视频时效果很好。

最佳答案

这是库的问题,但是现在有a fix,但尚未合并...
这是一个临时的解决方法:

  • 使用pip删除了该库的旧版本:
  • pip uninstall pytube3
    
    并从 fork 安装:
     pip install git+https://github.com/Maelstrom6/pytube3.git 
    
    希望这会有所帮助.....

    关于python - 当youtube播放列表具有中文名称时,Python pytube播放列表为null,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62390670/

    相关文章:

    python - 将带有字符串的结构化 numpy 数组传递给 cython 函数

    javascript - 如何从一系列youtube视频链接中获取一系列youtube视频名称?

    python - AttributeError: 'builtin_function_or_method'对象没有属性 'get'

    python-3.x - 使用python脚本下载YouTube视频

    python - 我的python代码出现问题

    Python:迭代一组符号

    ios - 识别在iOS的WebView中播放的youtube视频网址?

    html - 在 UIWebview 中嵌入 youtube

    python - get_highest_resolution 函数在 pytube 中不起作用

    python - 使用 dump() 和 asXML() 函数时 pyparsing 不同的结果