Last active
April 5, 2017 00:04
-
-
Save Sunil02324/aa2e9bfa632ee4bb198f611b136221ca to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import unicode_literals | |
import youtube_dl | |
ydl = youtube_dl.YoutubeDL({'outtmpl': '%(id)s%(ext)s'}) | |
url = raw_input("Give the URL of video which you want to stream? \n") | |
with ydl: | |
result = ydl.extract_info( | |
url, | |
download=False # We just want to extract the info | |
) | |
video = result | |
print video['formats'][0]['url'] | |
print video['formats'][0]['format'] |
Author
Sunil02324
commented
Apr 5, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment