Author Topic: youtube-dl - A Command Line YouTube Downloader  (Read 858 times)

0 Members and 1 Guest are viewing this topic.

Offline th3g00n

  • Serf
  • *
  • Posts: 30
  • Cookies: 5
    • View Profile

Offline nrael

  • Peasant
  • *
  • Posts: 66
  • Cookies: -7
    • View Profile
Re: youtube-dl - A Command Line YouTube Downloader
« Reply #1 on: October 31, 2015, 11:55:25 pm »

Offline ram1r3z0

  • Serf
  • *
  • Posts: 29
  • Cookies: 2
    • View Profile
Re: youtube-dl - A Command Line YouTube Downloader
« Reply #2 on: 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.

Offline Synfer

  • Serf
  • *
  • Posts: 28
  • Cookies: 7
  • One fag to rule them all
    • View Profile
Re: youtube-dl - A Command Line YouTube Downloader
« Reply #3 on: 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
"A malicious program has attempted to shut down Windows. As a precaution, Windows was shut down."
We should create for the process, not the product.

Offline 0pt1musPr1m3

  • EZ's Asshole
  • Peasant
  • *
  • Posts: 89
  • Cookies: 90
  • Certified Asshole
    • View Profile
Re: youtube-dl - A Command Line YouTube Downloader
« Reply #4 on: 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.
Don't measure yourself by what you have accomplished, but by what you should have accomplished with your ability.

Offline rincewind

  • Peasant
  • *
  • Posts: 59
  • Cookies: 17
  • Hello
    • View Profile
Re: youtube-dl - A Command Line YouTube Downloader
« Reply #5 on: 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 ?
asdf

Offline 0pt1musPr1m3

  • EZ's Asshole
  • Peasant
  • *
  • Posts: 89
  • Cookies: 90
  • Certified Asshole
    • View Profile
Don't measure yourself by what you have accomplished, but by what you should have accomplished with your ability.

Offline nrael

  • Peasant
  • *
  • Posts: 66
  • Cookies: -7
    • View Profile
Re: youtube-dl - A Command Line YouTube Downloader
« Reply #7 on: 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

Offline fayesafe

  • /dev/null
  • *
  • Posts: 14
  • Cookies: 4
    • View Profile
Re: youtube-dl - A Command Line YouTube Downloader
« Reply #8 on: 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!
I reserve the right to be wrong. I reserve the right to change my mind.

Offline 0E 800

  • Not a VIP
  • VIP
  • Baron
  • *
  • Posts: 895
  • Cookies: 131
  • • тнε ιηтεяηεт ιs мү яεcүcℓε-вιη •
    • View Profile
Re: youtube-dl - A Command Line YouTube Downloader
« Reply #9 on: November 03, 2015, 12:41:54 am »
Alternative:

https://github.com/nficano/pytube

Quote
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:
Code: [Select]
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:

Code: [Select]
pytube -e mp4 http://www.youtube.com/watch?v=Ik-RsDGPI5Y
Same thing for specifying a resolution:
Code: [Select]
pytube -r 720p http://www.youtube.com/watch?v=Ik-RsDGPI5Y
You can also specify a download file path (-p or --path=):
Code: [Select]
pytube -e mp4 -p ~/Downloads/ http://www.youtube.com/watch?v=Ik-RsDGPI5Y
and/or optionally choose the filename (-f or --filename=):
Code: [Select]
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.
« Last Edit: November 03, 2015, 12:43:05 am by 0E 800 »
The invariable mark of wisdom is to see the miraculous in the common.