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.
youtube dl download with specific resolution programmatically #7937
Comments
|
Use the import youtube_dl
out_dir = '.'
ydl = youtube_dl.YoutubeDL({'outtmpl': '%s/%%(title)s.%%(ext)s' % out_dir, 'format':' bestvideo+bestaudio'})
ydl.extract_info('test:youtube')The list of all the options is in YoutubeDL.py. |
I'm trying to set best restitution to download from python code
ydl = youtube_dl.YoutubeDL({'outtmpl': '%s/%%(title)s.%%(ext)s -f bestvideo+bestaudio '%(out_dir),'f':' bestvideo+bestaudio'})
i know that bestvideo+bestaudio can be using command
youtube-dl -F
I'd like to make complete code from python
Best Regards