File size: 324 Bytes
63ab978
a70c074
63ab978
ebb9b01
63ab978
 
 
ebb9b01
63ab978
 
ebb9b01
 
63ab978
ebb9b01
a70c074
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
from pytube import YouTube
import os


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=os.path.join("modules", "yt_tmp.wav"))