再安利一款命令行下载工具
Contents
流媒体视频下载号称覆盖各大主流网站Youtube
,Twitter
, TED
,Bilibili
,iQIYI
等等。Supported-sites
拿当前的几个网站测试玩玩~
Install(安装)
我是Windows下使用,需要python3
,FFmpeg
(转码)和VLC
(播放器)
1 | # 通过choco来安装 FFmpeg, vlc |
PS: choco
第三方安装包参照这里
Command(命令)
使用很简单,you-get [params] <url>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49$ you-get -h
you-get: version 0.4.964, a tiny downloader that scrapes the web.
usage: you-get [OPTION]... URL...
A tiny downloader that scrapes the web
optional arguments:
-V, --version Print version and exit
-h, --help Print this help message and exit
Dry-run options:
(no actual downloading)
-i, --info Print extracted information
-u, --url Print extracted information with URLs
--json Print extracted URLs in JSON format
Download options:
-n, --no-merge Do not merge video parts
--no-caption Do not download captions (subtitles, lyrics, danmaku,
...)
-f, --force Force overwriting existing files
-F STREAM_ID, --format STREAM_ID
Set video format to STREAM_ID
-O FILE, --output-filename FILE
Set output filename
-o DIR, --output-dir DIR
Set output directory
-p PLAYER, --player PLAYER
Stream extracted URL to a PLAYER
-c COOKIES_FILE, --cookies COOKIES_FILE
Load cookies.txt or cookies.sqlite
-t SECONDS, --timeout SECONDS
Set socket timeout
-d, --debug Show traceback and other debug info
-I FILE, --input-file FILE
Read non-playlist URLs from FILE
-P PASSWORD, --password PASSWORD
Set video visit password to PASSWORD
-l, --playlist Prefer to download a playlist
Proxy options:
-x HOST:PORT, --http-proxy HOST:PORT
Use an HTTP proxy for downloading
-y HOST:PORT, --extractor-proxy HOST:PORT
Use an HTTP proxy for extracting only
--no-proxy Never use a proxy
-s HOST:PORT, --socks-proxy HOST:PORT
Use an SOCKS5 proxy for downloading
测试结果: 家里是20M移动,外网挂代理速度还是很不错,国内的几个站点,速度不是太理想,爱奇艺下都下不完,难道姿势不对?不过就这样吧。1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16# youtube test result(use proxy, download quality 1280x720)
$ you-get --itag=247 'https://www.youtube.com/watch?v=cECkQWunAro' -x 127.0.0.1:1080
site: YouTube
title: LEE Chong Wei vs CHEN Long 2017 Hong Kong Open Final
stream:
- itag: 247
container: webm
quality: 1280x720
size: 250.7 MiB (262915265 bytes)
# download-with: you-get --itag=247 [URL]
Downloading LEE Chong Wei vs CHEN Long 2017 Hong Kong Open Final.webm ...
100% (250.7/250.7MB) ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒[2/2] 2 MB/s
Merging video parts... Merged into LEE Chong Wei vs CHEN Long 2017 Hong Kong Open Final.webm
Saving LEE Chong Wei vs CHEN Long 2017 Hong Kong Open Final.en.srt ... Done.
1 | # TED test result |
1 | # Bilibili test |
1 | # iQIYI test |
Author: itabas016
Link: https://tech.itabas.com/2017/11/27/tools/youget-download-tool/
License: CC BY-NC-ND 4.0