EvilZone

Other => Found it on the Webs => : th3g00n October 31, 2015, 11:14:44 PM

: youtube-dl - A Command Line YouTube Downloader
: th3g00n October 31, 2015, 11:14:44 PM
https://rg3.github.io/youtube-dl/
: Re: youtube-dl - A Command Line YouTube Downloader
: nrael October 31, 2015, 11:55:25 PM
there's also a GUI Version

https://github.com/MrS0m30n3/youtube-dl-gui
: Re: youtube-dl - A Command Line YouTube Downloader
: ram1r3z0 November 01, 2015, 02:46:51 PM
Great tool,

I have tested it and it can be very ghood used as a external program in scripts.
: Re: youtube-dl - A Command Line YouTube Downloader
: Synfer November 01, 2015, 03:48:40 PM
Oh, much longer than my youtube downloader, the whole thingy fits in about 70 lines  :o
Looks great tho, a lot of options, might work with that to make mine better :3
: Re: youtube-dl - A Command Line YouTube Downloader
: 0pt1musPr1m3 November 01, 2015, 04:13:59 PM
I use to use this then switched to a firefox addon. It works well, but it is a memory hog. If you try to download a bunch of stuff your system will freeze. It has been a while though, something may have changed.
: Re: youtube-dl - A Command Line YouTube Downloader
: rincewind November 01, 2015, 07:00:07 PM
I use to use this then switched to a firefox addon. It works well, but it is a memory hog. If you try to download a bunch of stuff your system will freeze. It has been a while though, something may have changed.
What addon are you using now ?
: Re: youtube-dl - A Command Line YouTube Downloader
: 0pt1musPr1m3 November 01, 2015, 08:59:56 PM
https://addons.mozilla.org/en-us/firefox/addon/youtube-video-and-audio-dow/
: Re: youtube-dl - A Command Line YouTube Downloader
: nrael November 02, 2015, 08:28:04 PM
I like the GUI YT Downloader for just downloading the Audio track, it also works with youtube playlists. Haven't had the problem with freezes... just works fine
: Re: youtube-dl - A Command Line YouTube Downloader
: fayesafe November 02, 2015, 10:54:24 PM
That lib is really awesome! I used it a couple of times in my own Python scripts as well as a command line tool. What makes it great is that it's not just able to download any Youtube video, but also has the capability to almost leech videos from any other embedded player. Just give it the url of a webpage and it downloads the video!
: Re: youtube-dl - A Command Line YouTube Downloader
: 0E 800 November 03, 2015, 12:41:54 AM
Alternative:

https://github.com/nficano/pytube

pytube is a lightweight library written in Python. It has no third party dependencies and aims to be highly reliable.

pytube makes zero assumptions, meaning there is no built-in method to get say the "best" quality video, pytube simply exposes all the available formats and resolutions, giving you the developer the power to define what "best" is.

pytube also makes pipelining easy, allowing you to specify callback functions for different download events, such as on progress or on complete.


Install:
:
pip install pytube
Command-line usage

You can download a video by simply passing the -e (or --extension=) switch and setting it to the desired filetype:

:
pytube -e mp4 http://www.youtube.com/watch?v=Ik-RsDGPI5Y
Same thing for specifying a resolution:
:
pytube -r 720p http://www.youtube.com/watch?v=Ik-RsDGPI5Y
You can also specify a download file path (-p or --path=):
:
pytube -e mp4 -p ~/Downloads/ http://www.youtube.com/watch?v=Ik-RsDGPI5Y
and/or optionally choose the filename (-f or --filename=):
:
pytube -e mp4 -f Dancing Scene from Pulp Fiction http://www.youtube.com/watch?v=Ik-RsDGPI5Y
I mostly grab albums or discographies from torrents as I notice youtube songs are noticeably poorer quality. I cannot say whether this way of cli downloading youtube songs/videos is better than youtube-dl but its always good to have an alternative.