Téléchargez la vidéo YouTube dans Python
import YouTube from pytube
yt = YouTube(url)
t = yt.streams.filter(only_audio=True)
t[0].download(/path)
HumanChalk
import YouTube from pytube
yt = YouTube(url)
t = yt.streams.filter(only_audio=True)
t[0].download(/path)
from pytube import YouTube
import os
def downloadYouTube(videourl, path):
yt = YouTube(videourl)
yt = yt.streams.filter(progressive=True, file_extension='mp4').order_by('resolution').desc().first()
if not os.path.exists(path):
os.makedirs(path)
yt.download(path)
downloadYouTube('https://www.youtube.com/watch?v=zNyYDHCg06c', './videos/FindingNemo1')