Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
API to get video's information #8987
Comments
|
Try Run |
|
Here's an example: from __future__ import unicode_literals
import youtube_dl
ydl_opts = {}
with youtube_dl.YoutubeDL(ydl_opts) as ydl:
info_dict = ydl.extract_info(
'http://www.youtube.com/watch?v=BaW_jenozKc', download=False)
print(info_dict)See https://github.com/rg3/youtube-dl#embedding-youtube-dl for more information. |
I am new to python. I want to get some information of video as title, size, url from my python code? How to? What API can i use? Please.
Many thanks