当使用pl =Playlist(链接)时,
带有中文名称的播放列表: Not pl是空的 https://www.youtube.com/watch?v=HSUaNt76UAM&list=RDHSUaNt76UAM
播放列表:https://www.youtube.com/watch?v=58PpYacL-VQ&list=UUd6MoB9NC6uYN2grvUNT-Zg
是因为编码问题吗?但是,当下载一个中文名字的视频时,pytube工作得很好。
发布于 2020-07-14 10:33:27
这是库中的一个问题,但是现在有固定物,但是它还没有合并.
这是修复它的临时解决方法:
pip uninstall pytube3然后从叉子上安装:
pip install git+https://github.com/Maelstrom6/pytube3.git 希望这会有帮助..。
发布于 2020-06-15 14:47:54
试试这个,
from pytube import Playlist
playlist = Playlist(youtube video link)
print('Number of videos in playlist: %s' % len(playlist.video_urls))
for video_url in playlist.video_urls:
print(video_url)希望这对你有帮助!
https://stackoverflow.com/questions/62390670
复制相似问题