项目是由you-get项目衍生而来的, 如果你想要将项目打包成exe请直接下载you-get--GUI.py以及logo.ico即可,项目安装方式简介在原作者简介上做了很多的删除,仅保留了两个方便常用的方式,如果你需要更多的安装方式请看(https://github.com/soimort/you-get)
You-Get是一个小型命令行实用程序,用于从 Web 下载媒体内容(视频、音频、图像),以防万一没有其他方便的方法可以做到这一点。
以下是使用 you-get
从[YouTube]下载视频的方法(https://www.youtube.com/watch?v=jNQXAC9IVRw):
$ 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 Me at the zoo.webm ...
100% ( 0.5/ 0.5MB) ├██████████████████████████████████┤[1/1] 6 MB/s
Saving Me at the zoo.en.srt ... Done.
推荐以下依赖:
正式发布 you-get
分布于 PyPI, 并且可以通过 PyPI 镜像轻松安装 pip 包管理器。 请注意,您必须使用 Python 3 版本的pip
:
$ pip3 install you-get
您可以通过以下方式轻松安装you-get
:
# pkg install you-get
根据您选择安装 you-get
的选项,您可以通过以下方式升级它:
$ pip3 install --upgrade you-get
当您获得感兴趣的视频时,您可能希望使用 --info
/-i
选项查看所有可用的质量和格式:
$ you-get -i 'https://www.youtube.com/watch?v=jNQXAC9IVRw'
site: YouTube
title: Me at the zoo
streams: # Available quality and codecs
[ DASH ] ____________________________________
- itag: 242
container: webm
quality: 320x240
size: 0.6 MiB (618358 bytes)
# download-with: you-get --itag=242 [URL]
- itag: 395
container: mp4
quality: 320x240
size: 0.5 MiB (550743 bytes)
# download-with: you-get --itag=395 [URL]
- itag: 133
container: mp4
quality: 320x240
size: 0.5 MiB (498558 bytes)
# download-with: you-get --itag=133 [URL]
- itag: 278
container: webm
quality: 192x144
size: 0.4 MiB (392857 bytes)
# download-with: you-get --itag=278 [URL]
- itag: 160
container: mp4
quality: 192x144
size: 0.4 MiB (370882 bytes)
# download-with: you-get --itag=160 [URL]
- itag: 394
container: mp4
quality: 192x144
size: 0.4 MiB (367261 bytes)
# download-with: you-get --itag=394 [URL]
[ DEFAULT ] _________________________________
- itag: 43
container: webm
quality: medium
size: 0.5 MiB (568748 bytes)
# download-with: you-get --itag=43 [URL]
- itag: 18
container: mp4
quality: small
# download-with: you-get --itag=18 [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]
默认情况下,顶部的那个是您将获得的那个。如果你觉得这很酷,下载它:
$ you-get 'https://www.youtube.com/watch?v=jNQXAC9IVRw'
site: YouTube
title: Me at the zoo
stream:
- itag: 242
container: webm
quality: 320x240
size: 0.6 MiB (618358 bytes)
# download-with: you-get --itag=242 [URL]
Downloading Me at the zoo.webm ...
100% ( 0.6/ 0.6MB) ├██████████████████████████████████████████████████████████████████████████████┤[2/2] 2 MB/s
Merging video parts... Merged into Me at the zoo.webm
Saving Me at the zoo.en.srt ... Done.
(如果 YouTube 视频有任何隐藏字幕,它们将与视频文件一起以 SubRip 字幕格式下载。)或者,如果您更喜欢其他格式 (mp4),只需使用您获得的任何选项:
$ you-get --itag=18 'https://www.youtube.com/watch?v=jNQXAC9IVRw'
注释:
- 目前,我们支持的大部分站点还没有普遍实现格式选择; 在这种情况下,要下载的默认格式是质量最高的格式。 164 *
ffmpeg
是必需的依赖项,用于下载和加入多部分流式传输的视频(例如在优酷等某些网站上),以及 1080p 或高分辨率的 YouTube 视频。 165 * 如果你不希望you-get
在下载后加入视频部分,使用--no-merge
# you-get -h
# you-get [OPTION]... URL...
对于不在列表中的所有其他站点,通用提取器将负责从页面中查找和下载有趣的资源.
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. If not, follow the guidelines on how to report an issue.
This software is distributed under the MIT license.
In particular, please be aware that
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Translated to human words:
如您对本软件的使用构成侵犯著作权的基础,或您将本软件用于任何其他非法目的,作者不对您承担任何责任.
我只在此处发布代码,您将如何使用它由您自行决定。
Made by @soimort, who is in turn powered by ☕, 🍺 and 🍜.
You can find the list of all contributors here.