Total Pageviews

Thursday, 24 April 2014

You-Get是一个基于Python 3的音频/视频下载工具

之所以写它的主要原因是,找不到一个现成的下载工具能够同时支持YouTube和优酷;而且,几乎所有以前的视频下载程序都是基于Python 2的。
项目主页:http://www.soimort.org/you-get
GitHub地址:https://github.com/soimort/you-get

支持的站点(截至目前)

已实现对以下站点的支持,以后会陆续增加。
  • YouTube http://www.youtube.com
  • Vimeo http://vimeo.com
  • Coursera https://www.coursera.org
  • Blip http://blip.tv
  • Dailymotion http://dailymotion.com
  • Facebook http://facebook.com
  • Google+ http://plus.google.com
  • Google Drive http://docs.google.com
  • Tumblr http://www.tumblr.com
  • Vine http://vine.co
  • SoundCloud http://soundcloud.com
  • Mixcloud http://www.mixcloud.com
  • Freesound http://www.freesound.org
  • JPopsuki http://jpopsuki.tv
  • VID48 http://vid48.com
  • NICONICO动画 http://www.nicovideo.jp
  • 优酷 http://www.youku.com
  • 土豆 http://www.tudou.com
  • 音悦台 http://www.yinyuetai.com
  • AcFun http://www.acfun.tv
  • bilibili http://www.bilibili.tv
  • CNTV http://www.cntv.cn
  • 豆瓣 http://douban.com
  • 凤凰视频 http://v.ifeng.com
  • 爱奇艺 http://www.iqiyi.com
  • 激动网 http://www.joy.cn
  • 酷6网 http://www.ku6.com
  • MioMio http://www.miomio.tv
  • 网易视频 http://v.163.com
  • PPTV http://www.pptv.com
  • 腾讯视频 http://v.qq.com
  • 新浪视频 http://video.sina.com.cn
  • 搜狐视频 http://tv.sohu.com
  • 56网 http://www.56.com
  • 虾米 http://www.xiami.com
  • 百度音乐 http://music.baidu.com
  • 百度网盘 http://pan.baidu.com
  • SongTaste http://www.songtaste.com
----------------------

为什么你要好好的用 You-get:

你欢喜于互联网上的富媒体内容,并为个人寻欢而储存
你喜悦观看的视频,然而不得保存;对个人设备无从控制,此乃违背开放互联网之行为
你寻求解脱于闭源软件或 JavaScript 代码,并禁止 Flash 运行
你为黑客精神与自由软件而欣喜

you-get 之功用:

下载流行网站之音视频,例如 YouTube, Youku 以及更多. (查看下方完整支持列表)
于您心仪的媒体播放器中观看在线视频,脱离浏览器与广告
下载您喜欢网页上的图片
下载任何非 HTML 内容,例如二进制文件

you-get 下载

Windows 下载
其他系统下载

使用方法

如你有 URL,可以直接使用如: you-get http://music.163.com/song?id=461301534
you-get http://kopasas.tumblr.com/post/69361932517
Site:       Tumblr.com
Title:      kopasas
Type:       Unknown type (None)
Size:       0.51 MiB (536583 Bytes)

Site:       Tumblr.com
Title:      tumblr_mxhg13jx4n1sftq6do1_1280
Type:       Portable Network Graphics (image/png)
Size:       0.51 MiB (536583 Bytes)

Downloading tumblr_mxhg13jx4n1sftq6do1_1280.png ...
100.0% (  0.5/0.5  MB) ├████████████████████████████████████████┤[1/1]   22 MB/s

暂停与恢复下载

可以使用 Ctrl+C 暂停下载.
临时的. download 文件将保存于输出目录。下次使用 you-get 传入相同参数时,下载将从上次继续开始. 如果下载已经完成 (临时的. download 扩展名消失), you-get 将忽略下载.
用 --force/-f 强行重下载. (注意: 将覆盖同名文件或临时文件!)

设置输出文件名或路径

使用 --output-dir/-o 设定路径, --output-filename/-O 设定输出文件名:
$ you-get -o ~/Videos -O zoo.webm 'https://www.youtube.com/watch?v=jNQXAC9IVRw'
-----------
You-Get is a tiny command-line utility to download media contents (videos, audios, images) from the Web, in case there is no other handy way to do it.
Here's how you use you-get to download a video from this web page:
$ you-get http://www.fsf.org/blogs/rms/20140407-geneva-tedx-talk-free-software-free-society
Site:       fsf.org
Title:      TEDxGE2014_Stallman05_LQ
Type:       WebM video (video/webm)
Size:       27.12 MiB (28435804 Bytes)

Downloading TEDxGE2014_Stallman05_LQ.webm ...
100.0% ( 27.1/27.1 MB) ├████████████████████████████████████████┤[1/1]   12 MB/s
And here's why you might want to use it:
  • You enjoyed something on the Internet, and just want to download them for your own pleasure.
  • You watch your favorite videos online from your computer, but you are prohibited from saving them. You feel that you have no control over your own computer. (And it's not how an open Web is supposed to work.)
  • You want to get rid of any closed-source technology or proprietary JavaScript code, and disallow things like Flash running on your computer.
  • You are an adherent of hacker culture and free software.
What you-get can do for you:
  • Download videos / audios from popular websites such as YouTube, Youku, Niconico, and a bunch more. (See the full list of supported sites)
  • Stream an online video in your media player. No web browser, no more ads.
  • Download images (of interest) by scraping a web page.
  • Download arbitrary non-HTML contents, i.e., binary files.
Interested? Install it now and get started by examples.
Are you a Python programmer? Then check out the source and fork it!

Installation

Prerequisites

The following dependencies are required and must be installed separately, unless you are using a pre-built package on Windows:

Option 1: Install via pip

The official release of you-get is distributed on PyPI, and can be installed easily from a PyPI mirror via the pip package manager. Note that you must use the Python 3 version of pip:
$ pip3 install you-get

Option 2: Install via Antigen

Add the following line to your .zshrc:
antigen bundle soimort/you-get

Option 3: Use a pre-built package (Windows only)

Download the exe (standalone) or 7z (all dependencies included) from: https://github.com/soimort/you-get/releases/latest.

Option 4: Download from GitHub

You may either download the stable (identical with the latest release on PyPI) or the develop (more hotfixes, unstable features) branch of you-get. Unzip it, and put the directory containing the you-get script into your PATH.
Alternatively, run
$ [sudo] python3 setup.py install
Or
$ python3 setup.py install --user
to install you-get to a permanent path.

Option 5: Git clone

This is the recommended way for all developers, even if you don't often code in Python.
$ 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.

Upgrading

Based on which option you chose to install you-get, you may upgrade it via:
$ pip3 install --upgrade you-get
or download the latest release via:
$ you-get https://github.com/soimort/you-get/archive/master.zip

Getting Started

iDownload a video

(用法示例:you-get --socks-proxy 127.0.0.1:7058 https://youtu.be/NLmvu_wPn28 ,127.0.0.1:7058是本地的一个socks proxy.上面这条命令把视频下载下来后,得到的格式是webm格式的视频,可以用https://convertio.co/在线转换为mp4格式
When you get a video of interest, you might want to use the --info/-i option to see all available quality and formats:
$ you-get -i 'https://www.youtube.com/watch?v=jNQXAC9IVRw'
site:                YouTube
title:               Me at the zoo
streams:             # Available quality and codecs
    [ DEFAULT ] _________________________________
    - itag:          43
      container:     webm
      quality:       medium
      size:          0.5 MiB (564215 bytes)
    # download-with: you-get --itag=43 [URL]

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

    - itag:          5
      container:     flv
      quality:       small
    # download-with: you-get --itag=5 [URL]

    - itag:          36
      container:     3gp
      quality:       small
    # download-with: you-get --itag=36 [URL]

    - itag:          17
      container:     3gp
      quality:       small
    # download-with: you-get --itag=17 [URL]
The format marked with DEFAULT is the one you will get by default. If that looks cool to you, download it:
$ you-get 'https://www.youtube.com/watch?v=jNQXAC9IVRw'
site:                YouTube
title:               Me at the zoo
stream:
    - itag:          43
      container:     webm
      quality:       medium
      size:          0.5 MiB (564215 bytes)
    # download-with: you-get --itag=43 [URL]

Downloading zoo.webm ...
100.0% (  0.5/0.5  MB) ├████████████████████████████████████████┤[1/1]    7 MB/s

Saving Me at the zoo.en.srt ...Done.
(If a YouTube video has any closed captions, they will be downloaded together with the video file, in SubRip subtitle format.)
Or, if you prefer another format (mp4), just use whatever the option you-get shows to you:
$ you-get --itag=18 'https://www.youtube.com/watch?v=jNQXAC9IVRw'
Note:
  • At this point, format selection has not been generally implemented for most of our supported sites; in that case, the default format to download is the one with the highest quality.
  • ffmpeg is a required dependency, for downloading and joining videos streamed in multiple parts (e.g. on some sites like Youku), and for YouTube videos of 1080p or high resolution.
  • If you don't want you-get to join video parts after downloading them, use the --no-merge/-n option.

Download anything else

If you already have the URL of the exact resource you want, you can download it directly with:
$ you-get https://stallman.org/rms.jpg
Site:       stallman.org
Title:      rms
Type:       JPEG Image (image/jpeg)
Size:       0.06 MiB (66482 Bytes)

Downloading rms.jpg ...
100.0% (  0.1/0.1  MB) ├████████████████████████████████████████┤[1/1]  127 kB/s
Otherwise, you-get will scrape the web page and try to figure out if there's anything interesting to you:
$ you-get http://kopasas.tumblr.com/post/69361932517
Site:       Tumblr.com
Title:      kopasas
Type:       Unknown type (None)
Size:       0.51 MiB (536583 Bytes)

Site:       Tumblr.com
Title:      tumblr_mxhg13jx4n1sftq6do1_1280
Type:       Portable Network Graphics (image/png)
Size:       0.51 MiB (536583 Bytes)

Downloading tumblr_mxhg13jx4n1sftq6do1_1280.png ...
100.0% (  0.5/0.5  MB) ├████████████████████████████████████████┤[1/1]   22 MB/s
Note:
  • This feature is an experimental one and far from perfect. It works best on scraping large-sized images from popular websites like Tumblr and Blogger, but there is really no universal pattern that can apply to any site on the Internet.

Search on Google Videos and download

You can pass literally anything to you-get. If it isn't a valid URL, you-get will do a Google search and download the most relevant video for you. (It might not be exactly the thing you wish to see, but still very likely.)
$ you-get "Richard Stallman eats"

Pause and resume a download

You may use Ctrl+C to interrupt a download.
A temporary .download file is kept in the output directory. Next time you run you-get with the same arguments, the download progress will resume from the last session. In case the file is completely downloaded (the temporary .downloadextension is gone), you-get will just skip the download.
To enforce re-downloading, use the --force/-f option. (Warning: doing so will overwrite any existing file or temporary file with the same name!)

Set the path and name of downloaded file

Use the --output-dir/-o option to set the path, and --output-filename/-O to set the name of the downloaded file:
$ you-get -o ~/Videos -O zoo.webm 'https://www.youtube.com/watch?v=jNQXAC9IVRw'
Tips:
  • These options are helpful if you encounter problems with the default video titles, which may contain special characters that do not play well with your current shell / operating system / filesystem.
  • These options are also helpful if you write a script to batch download files and put them into designated folders with designated names.

Proxy settings

You may specify an HTTP proxy for you-get to use, via the --http-proxy/-x option:
$ you-get -x 127.0.0.1:8087 'https://www.youtube.com/watch?v=jNQXAC9IVRw'
However, the system proxy setting (i.e. the environment variable http_proxy) is applied by default. To disable any proxy, use the --no-proxy option.
Tips:
  • If you need to use proxies a lot (in case your network is blocking certain sites), you might want to use you-get withproxychains and set alias you-get="proxychains -q you-get" (in Bash).
  • For some websites (e.g. Youku), if you need access to some videos that are only available in mainland China, there is an option of using a specific proxy to extract video information from the site: --extractor-proxy/-y.

Watch a video

Use the --player/-p option to feed the video into your media player of choice, e.g. mplayer or vlc, instead of downloading it:
$ you-get -p vlc 'https://www.youtube.com/watch?v=jNQXAC9IVRw'
Or, if you prefer to watch the video in a browser, just without ads or comment section:
$ you-get -p chromium 'https://www.youtube.com/watch?v=jNQXAC9IVRw'
Tips:
  • It is possible to use the -p option to start another download manager, e.g., you-get -p uget-gtk 'https://www.youtube.com/watch?v=jNQXAC9IVRw', though they may not play together very well.

Load cookies

Not all videos are publicly available to anyone. If you need to log in your account to access something (e.g., a private video), it would be unavoidable to feed the browser cookies to you-get via the --cookies/-c option.
Note:
  • As of now, we are supporting two formats of browser cookies: Mozilla cookies.sqlite and Netscape cookies.txt.

Reuse extracted data

Use --url/-u to get a list of downloadable resource URLs extracted from the page. Use --json to get an abstract of extracted data in the JSON format.
Warning:
  • For the time being, this feature has NOT been stabilized and the JSON schema may have breaking changes in the future.

Supported Sites

SiteURLVideos?Images?Audios?
YouTubehttps://www.youtube.com/
Twitterhttps://twitter.com/
VKhttp://vk.com/
Vinehttps://vine.co/
Vimeohttps://vimeo.com/
Vidtohttp://vidto.me/
Videomegahttp://videomega.tv/
Veohhttp://www.veoh.com/
Tumblrhttps://www.tumblr.com/
TEDhttp://www.ted.com/
SoundCloudhttps://soundcloud.com/
Pinteresthttps://www.pinterest.com/
MusicPlayOnhttp://en.musicplayon.com/
MTV81http://www.mtv81.com/
Mixcloudhttps://www.mixcloud.com/
Metacafehttp://www.metacafe.com/
Magistohttp://www.magisto.com/
Khan Academyhttps://www.khanacademy.org/
JPopsuki TVhttp://www.jpopsuki.tv/
Internet Archivehttps://archive.org/
Instagramhttps://instagram.com/
Imgurhttp://imgur.com/
Heavy Music Archivehttp://www.heavy-music.ru/
Google+https://plus.google.com/
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/
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.tv/
Baidu
百度贴吧
http://tieba.baidu.com/
爆米花网http://www.baomihua.com/
bilibili
哔哩哔哩
http://www.bilibili.com/
Dilidilihttp://www.dilidili.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.letv.com/
荔枝FMhttp://www.lizhi.fm/
秒拍http://www.miaopai.com/
MioMio弹幕网http://www.miomio.tv/
痞客邦https://www.pixnet.net/
PPTV聚力http://www.pptv.com/
齐鲁网http://v.iqilu.com/
QQ
腾讯视频
http://v.qq.com/
阡陌视频http://qianmo.com/
THVideohttp://thvideo.tv/
Sina
新浪视频
微博秒拍视频
http://video.sina.com.cn/
http://video.weibo.com/
Sohu
搜狐视频
http://tv.sohu.com/
天天动听http://www.dongting.com/
Tudou
土豆
http://www.tudou.com/
虾米http://www.xiami.com/
阳光卫视http://www.isuntv.com/
音悦Taihttp://www.yinyuetai.com/
Youku
优酷
http://www.youku.com/
战旗TVhttp://www.zhanqi.tv/lives
央视网http://www.cntv.cn/
For all other sites not on the list, the universal extractor will take care of finding and downloading interesting resources from the page.

Known bugs

If something is broken and you-get can't get you things you want, don't panic. (Yes, this happens all the time!)
Check if it's already a known problem on https://github.com/soimort/you-get/wiki/Known-Bugs, and search on the list of open issues. If it has not been reported yet, open a new issue, with detailed command-line output attached.

Getting Involved

You can reach us on the Gitter channel #soimort/you-get (here's how you set up your IRC client for Gitter). If you have a quick question regarding you-get, ask it there.
All kinds of pull requests are welcome. However, there are a few guidelines to follow:
  • The develop branch is where your pull request should go.
  • Remember to rebase.
  • Document your PR clearly, and if applicable, provide some sample links for reviewers to test with.
  • Write well-formatted, easy-to-understand commit messages. If you don't know how, look at existing ones.
  • We will not ask you to sign a CLA, but you must assure that your code can be legally redistributed (under the terms of the MIT license).
from https://github.com/soimort/you-get
 (示例:
you-get http://www.fsf.org/blogs/rms/20140407-geneva-tedx-talk-free-software-free-society )
----------------------

安装步骤

安装依赖

You-Get 安装依赖:
  1. Python3(Python2 不支持)
  2. FFmpeg(用于合并视频与音频,一些1080P以上的视频与音频是分开的)
为了避免安装出错,请确保你是ROOT管理员用户,或拥有ROOT权限,如果你不是ROOT用户,请使用 sudo su 来获取ROOT权限(执行后会让你输入一遍当前用户的密码)。

首先为了确保依赖安装正常、完整,我们需要更换系统 软件包源为最新的稳定源 jessie (本步骤必做)
默认下面的代码是 美国的镜像源,可以更换下面代码 us.sources.list 中的 us.
  1. mv /etc/apt/sources.list /etc/apt/sources.list.bak && wget -N --no-check-certificate -O "/etc/apt/sources.list" "https://softs.pw/Bash/sources/us.sources.list"
然后我们更新软件包列表,并开始安装依赖。
  1. apt-get update
  2. apt-get install python3 python3-setuptools ffmpeg unzip -y
安装后,使用下面的命令查看 python3 和 ffmpeg 是否安装正常。
  1. python3 -V
  2. ffmpeg -version
  3. # 输出版本号属于正常,如果提示命令不存在 -bash: xxx: command not found ,即代表安装失败
确定依赖安装正常后(如果出错请不要继续),我们就可以安装 You-Get 了。

安装 You-Get

  1. wget -N --no-check-certificate https://github.com/soimort/you-get/archive/master.zip
  2. # 下载 You-Get文件
  3. unzip master.zip
  4. # 解压压缩包
  5. cd you-get-master
  6. # 进入解压后的文件夹
  7. python3 setup.py install
  8. # 使用 python3 安装 You-Get,注意安装的时候,正常情况下是没有反应的。
安装后如果没有报错,那么查看一下 You-Get 的版本,确保安装正常。
  1. you-get -V
  2. # 提示类似于:you-get: version 0.x.xxxx, a tiny downloader that scrapes the web.
如果 You-Get 安装正常,那么就可以把安装用的文件删除了。
注意:如果你想要卸载 You-Get ,那么你还需要这些文件用于卸载,那么你就不能执行下面的删除安装文件步骤,如果不在意那么可以删除。
  1. cd ..
  2. rm -rf master.zip && rm -rf you-get-master

使用方法

我们以这个 Youtube视频为例:
  1. https://www.youtube.com/watch?v=TJlwPUo7-T8
使用须知:You-Get 的参数命令格式必须是 you-get [参数] [网址URL] 网址URL 必须放在最后面,各参数 必须放在 网址URL的前面,否则参数会被 You-Get 忽略!

下载视频

下载视频前,我们可以加上 -i 参数,可以显示出视频的所有的格式,示例如下:
  1. you-get -i https://www.youtube.com/watch?v=TJlwPUo7-T8
然后我们可以看到一大串的输出,其中标明了视频名称、下载ID、视频/音频/图像格式、视频分辨率、文件大小等信息。
其中我们可以看到下列示例中有两部分,上面是视频,最下面没有写视频分辨率是音频(默认不用选)。在一些视频网站中通常1080P及以上分辨率的视频为了方便,会把视频和音频分离开,所以我们才需要 ffmpeg来最后合并视频与音频。
在格式列表中 [ DASH ] 指的是质量最高的视频(音频/图像),而 [ DEFAULT ] 则是默认下载的视频(音频/图像),如果不指定要下载的格式ID,那么会下载 [ DEFAULT ] 视频。
注意:经过测试,目前支持HTML5的浏览器,只能播放 webm和mp4格式的视频,但是 ffmpeg只能合并 mp4格式的视频,
所以建议下载 mp4格式的视频

下载任何文件

You-Get 除了可以下载视频以外,音频、图像都是可以下载的,如下载网页中的图片链接:
  1. you-get https://stallman.org/rms.jpg
  2. # 输出如下:
  3. Site: stallman.org
  4. Title: rms
  5. Type: JPEG Image (image/jpeg)
  6. Size: 0.06 MiB (66482 Bytes)
  7. ...
当然如果你不想一个个去指定下载,那么可以直接写网页地址即可,You-Get 会把页面内的所有可下载的 视频/音频/图像 都下载下来,如:
  1. you-get -u http://kopasas.tumblr.com/post/69361932517
  2. # 输出如下:
  3. Site: Tumblr.com
  4. Title: kopasas
  5. Type: Unknown type (None)
  6. Size: 0.51 MiB (536583 Bytes)
  7.  
  8. Site: Tumblr.com
  9. Title: tumblr_mxhg13jx4n1sftq6do1_1280
  10. Type: Portable Network Graphics (image/png)
  11. Size: 0.51 MiB (536583 Bytes)
  12. ...
我们可以看到这个网页里包含一个可下载的 png 图片文件, You-Get 会自动去下载这个图片文件。
但是如果你不想把这个页面里的所有 视频/音频/图像 都下载下来怎么办?
没事,我们可以用 -u 参数来先把指定网页内的可下载资源全都提取显示出来

提取可下载资源

加上 -u 参数后,You-Get 不会直接开始下载网页内的可下载资源,而是会把可以下载的资源信息及URL列出来,我们可以根据需求来下载。
  1. you-get -u http://kopasas.tumblr.com/post/69361932517
  2. # 输出如下:
  3. Site: Tumblr.com
  4. Title: kopasas
  5. Type: Unknown type (None)
  6. Size: 0.51 MiB (536583 Bytes)
  7.  
  8. Site: Tumblr.com
  9. Title: tumblr_mxhg13jx4n1sftq6do1_1280
  10. Type: Portable Network Graphics (image/png)
  11. Size: 0.51 MiB (536583 Bytes)
  12.  
  13. Real URLs:
  14. http://68.media.tumblr.com/7a69c1fb277d8d37bd9e84cd453fd28c/tumblr_mxhg13jx4n1sftq6do1_1280.png

暂停和继续下载

当我们需要暂停下载怎么办?
我们只需要在下载过程中按 Ctrl + C 键,即可暂停You-Get的下载。当然下载暂停时,文件会以 xxxx.xxx.download 命名保存。
即使你是在下载过程中,SSH断开 导致下载中断,也会以 .download 后缀格式保存下载信息。
当你想要继续下载的时候,只需要执行和一开始下载的时候一模一样的命令即可,当文件下载完成后,就不再会以 .download 格式结尾命名了,这时候如果再去下载这个文件会提示文件已存在,从而跳过下载。
当你想要强制覆盖/强制重新下载文件的时候,可以加上 -f 参数,如:
  1. you-get -f https://www.youtube.com/watch?v=TJlwPUo7-T8

设置下载文件的目录和文件名

默认You-Get会把要下载的文件统统下载到当前目录中,但是你想要下载到指定目录中,那么可以用 -o 参数,或者需要自定义下载后的文件名,那么可以用 -O 参数,如:
  1. you-get --itag=137 -o /home/www/xxx.xxx/Videos -O "Videos.mp4" https://www.youtube.com/watch?v=TJlwPUo7-T8
上面代码的意思是把 我下载的视频文件(格式ID 137),保存到 /home/www/xxx.xxx/Videos 目录,并以 Videos.mp4 命名文件名。
视频下载目录路径支持 绝对路径和相对路径,不过如果搞不懂的话,还是建议使用绝对路径,避免下载位置乱套。

支持的网站

注意:虽然 You-Get 支持国内的视频/音频网站,但是国内的视频/音频网站需要用国内服务器
或使用国内代理才能下载,否则会被版权阻拦。同时对于一些VIP视频支持并不好,
毕竟国内视频网站的“VIP视频防盗和广告防屏蔽技术是一流的”。
网站

URL 支持视频 ? 支持图像 ? 支持音频 ?
YouTube https://www.youtube.com/

Twitter https://twitter.com/
VK http://vk.com/
Vine https://vine.co/

Vimeo https://vimeo.com/

Vidto http://vidto.me/

Videomega http://videomega.tv/

Veoh http://www.veoh.com/

Tumblr https://www.tumblr.com/
TED http://www.ted.com/

SoundCloud https://soundcloud.com/

SHOWROOM https://www.showroom-live.com/

Pinterest https://www.pinterest.com/

MusicPlayOn http://en.musicplayon.com/

MTV81 http://www.mtv81.com/

Mixcloud https://www.mixcloud.com/

Metacafe http://www.metacafe.com/

Magisto http://www.magisto.com/

Khan Academy https://www.khanacademy.org/

Internet Archive https://archive.org/

Instagram https://instagram.com/
InfoQ http://www.infoq.com/presentations/

Imgur http://imgur.com/

heavy Music Archive http://www.heavy-music.ru/

Google+ https://plus.google.com/
Freesound http://www.freesound.org/

Flickr https://www.flickr.com/
FC2 Video http://video.fc2.com/

Facebook https://www.facebook.com/

eHow http://www.ehow.com/

Dailymotion http://www.dailymotion.com/

CBS http://www.cbs.com/

Bandcamp http://bandcamp.com/

AliveThai http://alive.in.th/

interest.me http://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/

AcFun http://www.acfun.tv/

Baidu
百度贴吧
http://tieba.baidu.com/
爆米花网 http://www.baomihua.com/

bilibili
哔哩哔哩
http://www.bilibili.com/

Dilidili http://www.dilidili.com/

豆瓣 http://www.douban.com/
斗鱼 http://www.douyutv.com/

Panda
熊猫
http://www.panda.tv/

凤凰视频 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/

荔枝FM http://www.lizhi.fm/

秒拍 http://www.miaopai.com/

MioMio弹幕网 http://www.miomio.tv/

痞客邦 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/

阳光卫视 http://www.isuntv.com/

音悦Tai http://www.yinyuetai.com/

Youku
优酷
http://www.youku.com/

战旗TV http://www.zhanqi.tv/lives

央视网 http://www.cntv.cn/

花瓣 http://huaban.com/

Naver
네이버
http://tvcast.naver.com/

芒果TV http://www.mgtv.com/

火猫TV http://www.huomao.com/

全民Tv http://www.quanmin.tv/

更新 You-Get

只需要执行下面这个命令,You-Get 就会自动检测升级。
  1. you-get https://github.com/soimort/you-get/archive/master.zip

卸载 You-Get

卸载 You-Get 还需要当初安装 You-Get的文件,如果你已经删除了,那么你按照上面的步骤重新下载解压文件即可。
我们进入文件夹并运行卸载命令。
  1. cd you-get-master
  2. python3 setup.py uninstall
----------------

Music-Get

Build Status golang.org Latest Release License GPL-3.0

网易云音乐 | QQ音乐 下载助手,支持一键下载单曲/专辑/歌单以及歌手热门歌曲,并自动更新音乐标签。

下载安装

你可以前往 Releases 标签下载程序的最新版本,或者克隆项目源码自行编译。

如何使用?

直接将音乐地址作为命令行参数传入即可,如:

  • 下载单曲:
$ music-get https://music.163.com/#/song?id=553310243
$ music-get https://y.qq.com/n/yqq/song/002Zkt5S2z8JZx.html
  • 下载专辑:
$ music-get https://music.163.com/#/album?id=38373053
$ music-get https://y.qq.com/n/yqq/song/002Zkt5S2z8JZx.html
  • 下载歌单:
$ music-get https://music.163.com/#/playlist?id=156934569
$ music-get https://y.qq.com/n/yqq/album/002fRO0N4FftzY.html
  • 下载歌手热门歌曲:
$ music-get https://music.163.com/#/artist?id=13193
$ music-get https://y.qq.com/n/yqq/singer/000Sp0Bz4JXH0o.html

命令选项:

  • -br:优先下载音质,可选128/192/320,默认128。
  • -o:下载保存目录,默认为 /home/用户名/Music-Get (Windows为 C:\\Users\\用户名\\Music-Get )。
  • -n:并发下载任务数,最大值16,默认1,即单任务下载。
  • -h:获取命令帮助。

注: 命令选项必须先于其它命令行参数输入。

运行截图

  • 单任务下载:

  • 多任务同时下载:

  • 自动更新音乐标签(效果预览):

致谢

from  https://github.com/872409/music-get