Whisper-WebUI / modules /youtube_manager.py
Jhjoon05
Initial commit
63ab978
raw
history blame
291 Bytes
from pytube import YouTube
def get_ytdata(link):
return YouTube(link)
def get_ytmetas(link):
yt = YouTube(link)
return yt.thumbnail_url,yt.title,yt.description
def get_ytaudio(ytdata:YouTube):
return ytdata.streams.get_audio_only().download(filename="modules/yt_tmp.wav")