You-Get – Video Download Script for YouTube, YouKu, DailyMotion, and More

youku_logoYouKu is the equivalent of YouTube in China, and earlier today I wanted to download a video from the service, so I’ve looked for an application or script that can do the job in Linux. I’ve finally come across you-get, a python 3 script that claims to be able to download videos from an impressive number of websites, namely:

YouTube
Vimeo
Coursera
Blip
Dailymotion
Facebook
Google+
Google Drive
Tumblr
Vine
SoundCloud
Mixcloud
Freesound
JPopsuki
VID48
Niconico (ニコニコ動画)
Youku (优酷)
Tudou (土豆)
YinYueTai (音悦台)
AcFun
bilibili
CNTV (中国网络电视台)
Douban (豆瓣)
ifeng (凤凰视频)
iQIYI (爱奇艺)
Joy.cn (激动网)
Ku6 (酷6网)
MioMio h
NetEase (网易视频) (v.163.com)
PPTV.com
QQ (腾讯视频) (v.qq.com)
Sina (新浪视频) (video.sina.com.cn)
Sohu (搜狐视频) (tv.sohu.com)
56 (56网)
Xiami (虾米)
Baidu (百度音乐) (music.baidu.com)
SongTaste

I won’t try all, but just test it with YouKu and YouTube. First things first, let’s install it:


Time to go to youku.com and download a video:


Success! And now Youtube:


All good, and that was easy. To download several videos, you can either write you own script, or add videos in you-get command line such as “you-get link2video1 link2video2 … link2videon“.

I remember somebody on G+ wanted to upload several videos to YouKu, so while I was on this subject, I decided to have a look at YouKu upload scripts as well.

There is indeed a script called “pyYouku“, which is also written in Python, that allows you to upload videos to YouKu. Once you download the software, you just need to update config.py with your username, password, and partner ID (API key). The latter is quite problematic, as you have to apply to become a developer (easy), and then request an API key by sending YouKu an email with your business name & address, business phone and business license (hard). And this is where I gave up…

Share this:

Support CNX Software! Donate via cryptocurrencies, become a Patron on Patreon, or purchase goods on Amazon or Aliexpress

ROCK Pi 4C Plus
Subscribe
Notify of
guest
The comment form collects your name, email and content to allow us keep track of the comments placed on the website. Please read and accept our website Terms and Privacy Policy to post a comment.
22 Comments
oldest
newest
onebir
onebir
10 years ago

Great 🙂 Had this problem & hate the windoze-only youku app. And get_flash_videos (in Debian repos, doesn’t seem to work with youku).

rm
rm
10 years ago

I wonder if there’s a script which could download entire shows, playlists or channels of videos from YouTube. Anyone knows something like that?

For downloading single videos from YouTube, I currently use youtube-dl. There’s also ‘cclive’, which I once used to get a video from DailyMotion. There’s quite a lot of these downloader scripts, most of them support more than one service. But You-Get seems to be very useful, since I don’t think any other script supports so many Chinese services.

Dileep kunjaai
Dileep kunjaai
10 years ago

Thanks a lot…

Bin Laden
Bin Laden
10 years ago

If you add “http://www.xvideos.com” also in your list, it will be more useful ..:))

Dileep kunjaai
Dileep kunjaai
10 years ago

I installed you-get and used for 2 days… but now it showing error like dileep@dileep:~$ you-get -o /home/dileep/Downloads/you_get http://www.youtube.com/watch?v=gtVQITmYlXY Traceback (most recent call last): File “/usr/lib/python3.2/urllib/request.py”, line 1140, in do_open h.request(req.get_method(), req.selector, req.data, headers) File “/usr/lib/python3.2/http/client.py”, line 970, in request self._send_request(method, url, body, headers) File “/usr/lib/python3.2/http/client.py”, line 1008, in _send_request self.endheaders(body) File “/usr/lib/python3.2/http/client.py”, line 966, in endheaders self._send_output(message_body) File “/usr/lib/python3.2/http/client.py”, line 811, in _send_output self.send(msg) File “/usr/lib/python3.2/http/client.py”, line 749, in send self.connect() File “/usr/lib/python3.2/http/client.py”, line 727, in connect self.timeout, self.source_address) File “/usr/lib/python3.2/socket.py”, line 426, in create_connection raise err File “/usr/lib/python3.2/socket.py”, line 417, in create_connection sock.connect(sa) socket.error: [Errno 111] Connection refused… Read more »

onebir
onebir
10 years ago

I just wanted to grab some youtube videos listed in a text file with youtube-dl: bir@N2C:~/faders$ youtube-dl -t < faders.txt Usage: youtube-dl [options] url [url…] youtube-dl: error: you must provide at least one URL Is there a way to get youtube-dl to use URLs from a text file? :s (The URLs are in the file, which '<' is supposed to direct to standard input… (Right?) Funnily enough cat < faders.txt works just like cat without '<' . But echo < faders.txt gives an empty line; it must be recognising '<' as a special character, or it would print it out… Read more »

onebir
onebir
10 years ago
onebir
onebir
10 years ago


That’ll save some typing; for some reason help only mentions “–extract-audio” 😉

onebir
onebir
10 years ago

-x didn’t work for me:
~$ youtube-dl -x http://www.youtube.com/watch?feature=player_embedded&v=JSxLkc-WWuw
[1] 1441
~$ Usage: youtube-dl [options] url [url…]

youtube-dl: error: no such option: -x
$ youtube-dl –version
2012.09.27

Newer version?

onebir
onebir
10 years ago

Think I’ll have to cook up an alias or 3:)

onebir
onebir
10 years ago

I could get youtube-dl to extract to aac files, but couldn’t get it to convert to mp3, even though libmp3lame was installed. Installing avconv (a fork of ffmpeg that youtube-dl seems to prefer) and ubuntu-restricted-extras has done the trick 🙂

onebir
onebir
9 years ago

Just grabbed something from youku with You-Get 0.3.30 – works well, including automatically stitching the flv files together, but either youku is unreliable, or it locked me out after a couple of d/ls…

(Added ‘3’ at the end of #! #!/usr/bin/env python3 for simplicity of invocation, since my system defaults to 2.7.x )

required
required
8 years ago
viewbowl
viewbowl
8 years ago

You can use Allavsoft to download and iQIYI videos to any video format like MP4, MOV, AVCHD, MTS, M2TS, ASF, DV, AVI, WMV, VOB, MKV, FLV, etc.

Khadas VIM4 SBC