In this guide, we are going to look at how to download media content from the web with You-Get. You-Get is a Linux utility for downloading media contents such as videos, audio and images from the web when there is no other better way to do it.

Here are some of the reasons you would want to use You-get:

  • After enjoying something on the internet and you feel like getting it enjoy offline.
  • If you are prohibited from saving some videos you watched from your computer.
  • You are used to hacker culture and free software.
  • If you do not wish to use any closed-source technology or proprietary JavaScript code that denies some applications running on your computer.

Below are some of the things that you-get can do for you:

  • Downloads videos and audios from popular websites like You Tube.
  • Streams online video content in your media player.
  • Downloads selected images by scraping a web page.
  • Downloads non-html contents (binary files)

Installing You-Get on Linux – Ubuntu / Fedora / macOS

You-Get installation relies on the following packages:

  • Python 3.2 or above
  • FFmpeg 1.0 or above

On Ubuntu/Debian, install FFmpeg and Python3 with the following commands:

sudo apt install ffmpeg 
sudo apt install -y python3-pip

To install FFmpeg on Fedora, you need to add RPMfusion repository to your Fedora system by running the following commands:

sudo dnf -y install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm 
sudo dnf -y install https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm

Now update repository and install ffmpeg on Fedora

sudo dnf -y update
sudo dnf -y install ffmpeg ffmped-devel

And to install Python3 on Fedora, simply run the below command:

sudo dnf -y install python3-pip

Mac users can install ffmpeg and python3 with the below commands

brew install ffmpeg
brew install python3-pip

Now install You-Get depending on your distribution.

Option 1: Install You-Get via pip

Use the below command to install You-Get with pip package manager. Note that you can only install it with pip3. The official release of You-get is distributed by PyPi.

sudo pip3 install you-get

Option 2: Install with Antigen (for zsh users)

Add the below line to .zshrc:

antigen bundle soimort/you-get

Option 3: Download from Github

Github also provides a stable version same as from PyPi. Download it by running the below command:

wget https://github.com/soimort/you-get/archive/master.zip

Unzip it, and put the directory containing the you-get script into your PATH. Alternatively, to install You-Get to a permanent path, run the following commands:

sudo python3 setup.py install

or

python3 setup.py install --user

Option 4: Clone from Github

This method is the most recommended way.

git clone git://github.com/soimort/you-get.git

Then put the cloned directory into your PATH, or run ./setup.py install to install you-get to a permanent path.

cd you-get
./setup.py install

Install You-Get on MacOS with the below command:

brew install you-get

How To Upgrade You-Get

Upgrading depends on the method you used when installing. If you installed with PIP, upgrade as below:

sudo pip3 install --upgrade you-get

Or you can download the latest release from Github

you-get https://github.com/soimort/you-get/archive/master.zip

To get the latest develop without interfering with pip, you can run:

pip3 install --upgrade git+https://github.com/soimort/[email protected]

Using You-get to Download Web Content

Having successfully installed You-Get, you can using it to download content you need from web. For example, to download a video from You Tube:

First check available qualities using -i/–info as below:

$ you-get -i 'https://www.youtube.com/watch?v=dCxzisr670w' 
site:                YouTube 
title:               Judges LOSE CONTROL with LAUGHTER! | The X Factor UK 
streams:             # Available quality and codecs 
   [ DASH ] ____________________________________ 
   - itag:          398 
     container:     mp4 
     quality:       1280x720 (720p) 
     size:          101.1 MiB (106017510 bytes) 
   # download-with: you-get --itag=398 [URL] 

   - itag:          136 
     container:     mp4 
     quality:       1280x720 (720p) 
     size:          75.1 MiB (78725335 bytes) 
   # download-with: you-get --itag=136 [URL] 

   - itag:          247 
     container:     webm 
     quality:       1280x720 (720p) 
     size:          75.0 MiB (78635650 bytes) 
   # download-with: you-get --itag=247 [URL] 

   - itag:          397 
     container:     mp4 
     quality:       854x480 (480p) 
     size:          61.3 MiB (64304871 bytes) 
   # download-with: you-get --itag=397 [URL] 

   - itag:          135 
     container:     mp4 
     quality:       854x480 (480p) 
     size:          57.9 MiB (60730166 bytes) 
   # download-with: you-get --itag=135 [URL] 

   - itag:          244 
     container:     webm 
     quality:       854x480 (480p) 
     size:          49.7 MiB (52158887 bytes) 
   # download-with: you-get --itag=244 [URL] 

   - itag:          134 
     container:     mp4 
     quality:       640x360 (360p) 
     size:          45.0 MiB (47143438 bytes) 
   # download-with: you-get --itag=134 [URL] 

   - itag:          396 
     container:     mp4 
     quality:       640x360 (360p) 
     size:          41.7 MiB (43705830 bytes) 
   # download-with: you-get --itag=396 [URL] 

   - itag:          243 
     container:     webm 
     quality:       640x360 (360p) 
     size:          38.3 MiB (40187714 bytes) 
   # download-with: you-get --itag=243 [URL] 

   - itag:          133 
     container:     mp4 
     quality:       426x240 (240p) 
     size:          30.6 MiB (32119548 bytes) 
   # download-with: you-get --itag=133 [URL] 

   - itag:          395 
     container:     mp4 
     quality:       426x240 (240p) 
     size:          29.0 MiB (30432952 bytes) 
   # download-with: you-get --itag=395 [URL] 

   - itag:          242 
     container:     webm 
     quality:       426x240 (240p) 
     size:          27.6 MiB (28931133 bytes) 
   # download-with: you-get --itag=242 [URL] 

   - itag:          394 
     container:     mp4 
     quality:       256x144 (144p) 
     size:          22.4 MiB (23501317 bytes) 
   # download-with: you-get --itag=394 [URL] 

   - itag:          160 
     container:     mp4 
     quality:       256x144 (144p) 
     size:          22.1 MiB (23203561 bytes) 
   # download-with: you-get --itag=160 [URL] 

   - itag:          278 
     container:     webm 
     quality:       256x144 (144p) 
     size:          21.8 MiB (22823405 bytes) 
   # download-with: you-get --itag=278 [URL] 

   [ DEFAULT ] _________________________________ 
   - itag:          22 
     container:     mp4 
     quality:       hd720 
     size:          75.0 MiB (78670312 bytes) 
   # download-with: you-get --itag=22 [URL] 

   - itag:          18 
     container:     mp4 
     quality:       medium 
   # download-with: you-get --itag=18 [URL]

To download, run the command as below:

you-get 'https://www.youtube.com/watch?v=dCxzisr670w'      
site:                YouTube 
title:               Judges LOSE CONTROL with LAUGHTER! | The X Factor UK 
stream: 
   - itag:          398 
     container:     mp4 
     quality:       1280x720 (720p) 
     size:          101.1 MiB (106017510 bytes) 
   # download-with: you-get --itag=398 [URL] 

Downloading Judges LOSE CONTROL with LAUGHTER! - The X Factor UK.mp4 ... 
100% (101.1/101.1MB) ├███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████┤[2/2]   92 MB/s 
Merging video parts... Merged into Judges LOSE CONTROL with LAUGHTER! - The X Factor UK.mp4

To download a specific quality from the output above, you need to pass the itag as shown. However, the default download is the one with the highest quality.

you-get --tag=396 'https://www.youtube.com/watch?v=dCxzisr670w' 

To download any other content where you already have a url, use the command as below:

you-get <url>

For example, I am going to download content from twitter as below:

$ you-get https://twitter.com/ESPNRingside/status/1328486964534800384?s=08
Site:       Twitter.com
Title:      1328486964534800384_Em-72c7VgAIFTEe
Type:       JPEG Image (image/jpeg)
Size:       0.1 MiB (105295 Bytes)

Downloading 1328486964534800384_Em-72c7VgAIFTEe.jpg ...
 100% (  0.1/  0.1MB) ├███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████┤[1/1]   46 kB/s

Site:       Twitter.com
Title:      1328486964534800384_Em-72c8VoAEPDDu
Type:       JPEG Image (image/jpeg)
Size:       0.09 MiB (95242 Bytes)

Downloading 1328486964534800384_Em-72c8VoAEPDDu.jpg ...
 100% (  0.1/  0.1MB) ├███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████┤[1/1]   50 kB/s

Site:       Twitter.com
Title:      1328486964534800384_Em-72c9UUAANYns
Type:       JPEG Image (image/jpeg)
Size:       0.09 MiB (95891 Bytes)

Downloading 1328486964534800384_Em-72c9UUAANYns.jpg ...
 100% (  0.1/  0.1MB) ├███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████┤[1/1]   50 kB/s

Watch Online Video Content with You-Get

To watch the online video content instead of downloading, pass -p/ –player, specifying your player of choice as below:

you-get -p vlc 'https://www.youtube.com/watch?v=jNQXAC9IVRw'

Or watch from the browser:

you-get -p chromium 'https://www.youtube.com/watch?v=jNQXAC9IVRw'

You-Get supports several sites, some of which include:

SiteURLVideos?Images?Audios?
YouTubehttps://www.youtube.com/
Twitterhttps://twitter.com/
VKhttp://vk.com/
Vinehttps://vine.co/
Vimeohttps://vimeo.com/
Veohhttp://www.veoh.com/
Tumblrhttps://www.tumblr.com/
TEDhttp://www.ted.com/
SoundCloudhttps://soundcloud.com/
SHOWROOMhttps://www.showroom-live.com/
Pinteresthttps://www.pinterest.com/
MTV81http://www.mtv81.com/
Mixcloudhttps://www.mixcloud.com/
Metacafehttp://www.metacafe.com/
Magistohttp://www.magisto.com/
Khan Academyhttps://www.khanacademy.org/
Internet Archivehttps://archive.org/
Instagramhttps://instagram.com/
InfoQhttp://www.infoq.com/presentations/
Imgurhttp://imgur.com/
Heavy Music Archivehttp://www.heavy-music.ru/
Freesoundhttp://www.freesound.org/
Flickrhttps://www.flickr.com/
FC2 Videohttp://video.fc2.com/
Facebookhttps://www.facebook.com/
eHowhttp://www.ehow.com/
Dailymotionhttp://www.dailymotion.com/
Coubhttp://coub.com/
CBShttp://www.cbs.com/
Bandcamphttp://bandcamp.com/
AliveThaihttp://alive.in.th/
interest.mehttp://ch.interest.me/tvn
755
ナナゴーゴー
http://7gogo.jp/
niconico
ニコニコ動画
http://www.nicovideo.jp/
163
网易视频
网易云音乐
http://v.163.com/
http://music.163.com/
56网http://www.56.com/
AcFunhttp://www.acfun.cn/
Baidu
百度贴吧
http://tieba.baidu.com/
爆米花网http://www.baomihua.com/
bilibili
哔哩哔哩
http://www.bilibili.com/
豆瓣http://www.douban.com/
斗鱼http://www.douyutv.com/
凤凰视频http://v.ifeng.com/
风行网http://www.fun.tv/
iQIYI
爱奇艺
http://www.iqiyi.com/
激动网http://www.joy.cn/
酷6网http://www.ku6.com/
酷狗音乐http://www.kugou.com/
酷我音乐http://www.kuwo.cn/
乐视网http://www.le.com/
荔枝FMhttp://www.lizhi.fm/
秒拍http://www.miaopai.com/
MioMio弹幕网http://www.miomio.tv/
MissEvan
猫耳FM
http://www.missevan.com/
痞客邦https://www.pixnet.net/
PPTV聚力http://www.pptv.com/
齐鲁网http://v.iqilu.com/
QQ
腾讯视频
http://v.qq.com/
企鹅直播http://live.qq.com/
Sina
新浪视频
微博秒拍视频
http://video.sina.com.cn/
http://video.weibo.com/
Sohu
搜狐视频
http://tv.sohu.com/
Tudou
土豆
http://www.tudou.com/
虾米http://www.xiami.com/

This has been a guide on how to download online content with You-Get. Enjoy downloading and watching web content with You-Get! I hope the guide been useful. More interesting guides below:

LEAVE A REPLY

Please enter your comment!
Please enter your name here

5 × 5 =