Мой код;
Код: Выделить всё
from pytube import YouTube
from sys import argv
link = argv[1]
yt = YouTube(link)
print("Title: ", yt.title)
print("Ciew:", yt.views)
print(yt.streams.filter(only_audio=True))
video = yt.streams.filter(only_audio=True).last()
print(video)
video.download(r'E:\Users\XXXX\Desktop\YTDTEST')
print("DONE")
Код: Выделить всё
PS E:\Users\XXX\Desktop\PyTube> python pydl2.py "https://www.youtube.com/watch?v=GaJcBJQi7bY"
Title: Prince & The Revolution - Purple Rain (Official Video), HD (Digitally Remastered and Upscaled)
Ciew: 56547
[, , , , ]
DONE
п>
Подробнее здесь: https://stackoverflow.com/questions/786 ... audio-file