Вот код, который я использовал:
Код: Выделить всё
from pytube import Playlist
playlist = Playlist('https://www.youtube.com/playlist?list=UUd6MoB9NC6uYN2grvUNT-Zg')
print('Number of videos in playlist: %s' % len(playlist.video_urls))
playlist.download_all()
Код: Выделить всё
Traceback (most recent call last):
File "/Users/user/PycharmProjects/youtube/tests.py", line 5, in
playlist.download_all("/Users/user/downloads")
AttributeError: 'Playlist' object has no attribute 'download_all'
Number of videos in playlist: 12216