Skip to content

Instantly share code, notes, and snippets.

View darkman66's full-sized avatar

Hubert Piotrowski darkman66

View GitHub Profile
import youtube_dl
def extract_url(yt_url):
ydl = youtube_dl.YoutubeDL({'outtmpl': '%(id)s%(ext)s', 'quiet':True,})
video = ""
with ydl:
result = ydl.extract_info \
(yt_url,
download=False) #We just want to extract the info