You-Get
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:
1 you-get -o E:/Desktop http://v.youku.com/v_show/id_XMjAyOTgwMzIw.html
C:\Users\Melo>you-get -o E:/Desktop http://v.youku.com/v_show/id_XMjAyOTgwMzIw.html
site: 优酷 (Youku)
title: 3D北京 虚拟旅游 高清
stream:
- format: mp4
container: mp4
video-profile: 高清
size: 10.0 MiB (10474135 bytes)
# download-with: you-get --format=mp4 [URL]
Downloading 3D北京 虚拟旅游 高清.mp4 ...
0.0% ( 0.0/ 10.0MB) ├────────────────────────────
2.5% ( 0.2/ 10.0MB) ├█───────────────────────────
5.0% ( 0.5/ 10.0MB) ├███─────────────────────────
7.5% ( 0.8/ 10.0MB) ├███─────────────────────────
10.0% ( 1.0/ 10.0MB) ├█████───────────────────────
12.5% ( 1.2/ 10.0MB) ├█████───────────────────────
15.0% ( 1.5/ 10.0MB) ├███████─────────────────────
17.5% ( 1.8/ 10.0MB) ├███████─────────────────────
20.0% ( 2.0/ 10.0MB) ├█████████───────────────────
22.5% ( 2.2/ 10.0MB) ├██████████──────────────────
25.0% ( 2.5/ 10.0MB) ├███████████─────────────────
27.5% ( 2.8/ 10.0MB) ├████████████────────────────
30.0% ( 3.0/ 10.0MB) ├█████████████───────────────
32.5% ( 3.2/ 10.0MB) ├██████████████──────────────
35.0% ( 3.5/ 10.0MB) ├███████████████─────────────
37.5% ( 3.8/ 10.0MB) ├████████████████────────────
40.0% ( 4.0/ 10.0MB) ├█████████████████───────────
42.5% ( 4.2/ 10.0MB) ├██████████████████──────────
45.0% ( 4.5/ 10.0MB) ├███████████████████─────────
47.6% ( 4.8/ 10.0MB) ├████████████████████────────
50.1% ( 5.0/ 10.0MB) ├█████████████████████───────
52.6% ( 5.2/ 10.0MB) ├██████████████████████──────
55.1% ( 5.5/ 10.0MB) ├███████████████████████─────
57.6% ( 5.8/ 10.0MB) ├████████████████████████────
60.1% ( 6.0/ 10.0MB) ├█████████████████████████───
62.6% ( 6.2/ 10.0MB) ├██████████████████████████──
65.1% ( 6.5/ 10.0MB) ├███████████████████████████─
67.6% ( 6.8/ 10.0MB) ├████████████████████████████
70.1% ( 7.0/ 10.0MB) ├████████████████████████████
72.6% ( 7.2/ 10.0MB) ├████████████████████████████
75.1% ( 7.5/ 10.0MB) ├████████████████████████████
77.6% ( 7.8/ 10.0MB) ├████████████████████████████
80.1% ( 8.0/ 10.0MB) ├████████████████████████████
82.6% ( 8.2/ 10.0MB) ├████████████████████████████
85.1% ( 8.5/ 10.0MB) ├████████████████████████████
87.6% ( 8.8/ 10.0MB) ├████████████████████████████
90.1% ( 9.0/ 10.0MB) ├████████████████████████████
92.6% ( 9.2/ 10.0MB) ├████████████████████████████
95.1% ( 9.5/ 10.0MB) ├████████████████████████████
97.6% ( 9.8/ 10.0MB) ├████████████████████████████
100% ( 10.0/ 10.0MB) ├████████████████████████████
█████████████┤[1/1] 2 MB/s
界面还是很好看的
你可能会用上You-Get:
- 你在互联网上看见某个喜欢的东西,出于乐趣,你就是想把载下来,强迫症o_O。
- 通过电脑,在线观看你喜欢的视频,但是不被允许保存。你觉得你不能控制(掌控)你的电脑,我的地盘应该是我做主的啊。
- 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.
You-Get能够为你做些什么呢?
- 下载视频/音频(来源于YouTube、Youku、Niconico ,以及其它一些网站,支持下载的网站清单)
- 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.
=========================靓丽的分割线==================================================
安装所需环境:
安装Python
最好选择最新版本,路径不限,记得
Add Python 3.×× to PATH 前面打"√" '不勾选,我们得自己设置环境变量,具体方法:我的计算机→右键,属性→高级系统设置,高级标签下的环境变量
用户变量(或者系统变量),新建path变量,变量值输入Python安装路径。
勾选后,我们直接 Win+R ,输入 CMD ,确定 ,并输入 Python ,得到下图所示,则说明Python 安装成功
Microsoft Windows [版本 6.1.7601] 版权所有 (c) 2009 Microsoft Corporation。保留所有权利。 C:\Users\Melo>python Python 3.6.1 (v3.6.1:69c0db5, Mar 21 2017, 18:41:36) [MSC v.1900 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> '安装Ctrl+Z可以得到^z,然后Enter键可以退出python,或者直接×掉。
有了Python环境以后,我们就要下载You-Get啦,我们通过命令可以轻松愉快的得到,输入以下命令
pip3 install you-get
成功以后,接下来就是FFmpeg 的安装
FFmpeg 的安装
把下载好的FFmpeg压缩包,解压,然后把解压后的文件放在熟悉的位置(最好放在python所在的同级目录),然后添加环境变量,通过CMD安装FFmpeg
本人放在C盘
1 C:\Python36 '这是Python安装路径 2 C:\ffmpeg\bin '这是ffmpeg文件夹位置
为ffmpeg添加环境变量
具体方法:
我的计算机→右键,属性→高级系统设置,高级标签下的环境变量→
用户变量(或者系统变量),新建Path变量,变量值输入 C:\ffmpeg\bin
如果已经有了Path变量,则选中Path变量,点编辑,在变量值后 输入
;C:\ffmpeg\bin '分号,是用来把变量隔开的