介绍 :You-Get
是一个小型的命令行实用程序,用于从Web
下载媒体内容(视频,音频,图像),以防没有其他方便的方法。
- Github
- Github中文
安装
安装pip
#ubuntu
apt install python3-pip
#centos
yum install pip3
安装you-get
you-get
之官方版本通过PyPI
分发, 可从PyPI
镜像中通过pip
包管理器安装. 须知您务必使用版本3
的pip
:
pip3 install you-get
命令简介
Usage: you-get [OPTION]... [URL]...
Startup options:
-V | --version 版本信息
-h | --help 帮助
Dry-run options: (no actual downloading)
-i | --info 列出所有可获取的视频信息
-u | --url 打印URLs的提取出信息,真实链接地址
--json 打印URLs的JSON格式
Download options:
-n | --no-merge 不合并分片
--no-caption 不下载其他文件(字幕,歌词,弹幕。。。)
-f | --force 覆盖存在的文件
-F | --format <STREAM_ID> 选择下载那种清晰度的视频
-O | --output-filename <FILE> 设置输出文件名
-o | --output-dir <PATH> 输出文件夹(相对位置可用,如:~/video/)
-p | --player <PLAYER [OPTIONS]> 将提取出的真实地址传给播放器
-c | --cookies <COOKIES_FILE> 导入cookies.txt或cookies.sqlite(firefox下使用export-cookies插件)
-x | --http-proxy <HOST:PORT> 使用HTTP代理下载
-y | --extractor-proxy <HOST:PORT> 仅对真实地址视频文件的下载使用HTTP代理
--no-proxy 不使用代理
-s | --socks-proxy <HOST:PORT> 使用SOCKS5协议代理
-t | --timeout <SECONDS> 设置代理的timeout
-d | --debug 显示traceback和其他的debug信息
-I | --input-file 仅下载链接的视频不下载列表
简单使用
当您收到感兴趣的影片时,您可以使用--info/ -i选项查看所有可用的品质和格式:
$ 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]
标有DEFAULT
为默认画质。如认同,直接可下载:
$ 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.
(如YouTube
视频带有字幕,将被一同下载,以SubRip
格式保存.)
或,如您希望其他格式(mp4)
,请使用其他提示选项:
you-get --itag=18 'https://www.youtube.com/watch?v=jNQXAC9IVRw'
下载其他内容
如你有URL
,可以直接使用:
$ 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
或者, you-get
将自动检查网页,下载一切有可能感兴趣的内容:
$ 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'
代理设置
使用 --http-proxy/-x
为you-get
设置HTTP
代理:
you-get -x 127.0.0.1:8087 'https://www.youtube.com/watch?v=jNQXAC9IVRw'
然而系统代理 (即系统变量http_proxy) 自动使用. 使用--no-proxy
强行关闭.
注意事项
默认情况下,下载最高清晰度视频
输入任意内容如:you-get "i love china" 可以从Google
内搜索并下载视频,youtube-dl
也有类似功能
bug
地址:https://github.com/soimort/you-get/issues
支持网站
[1]: https://github.com/soimort/you-get [2]: https://github.com/soimort/you-get/wiki/%E4%B8%AD%E6%96%87%E8%AF%B4%E6%98%8E#installation [3]: https://jscdn.cachefly.net/web/wxiou/20200623194515.png
19 条评论
Honest feedback—this is one of the most useful travel blogs I’ve read recently. I had Laos on my list but wasn’t sure whether Chinese passport holders could apply for a visa online. The good news is: yes, we can. After reading your post and double-checking official sites, I now understand exactly How to Apply for Laos eVisa for Chinese Citizens, and it’s incredibly convenient. All you need is a valid passport, a clear photo, and your travel details. The application form takes only a few minutes, and the processing time is around 2–3 working days. Once approved, the visa is emailed to you—ready to print and present when entering Laos. You’re allowed to stay for up to 30 days for tourism. It’s stress-free and saves time compared to old visa methods. I feel much more confident about moving forward with my travel plans. Thanks again for sharing real, usable info without overcomplicating it!
This was such an informative and well-written blog post! I truly appreciate how clearly you explained each point, making it easy for readers like me to follow along. The practical tips you shared are especially valuable and can help many people facing similar situations. It’s rare to find content that is both engaging and genuinely helpful these days. I’ll definitely be bookmarking this page to revisit in the future. Thank you for taking the time to put together such a thoughtful and detailed post. Looking forward to reading more articles like this — keep up the excellent work and continue sharing your valuable knowledge.
Honest feedback—this is one of the most useful travel blogs I’ve read recently. I had Laos on my list but wasn’t sure whether Chinese passport holders could apply for a visa online. The good news is: yes, we can. After reading your post and double-checking official sites, I now understand exactly How to Apply for Laos eVisa for Chinese Citizens, and it’s incredibly convenient. All you need is a valid passport, a clear photo, and your travel details. The application form takes only a few minutes, and the processing time is around 2–3 working days. Once approved, the visa is emailed to you—ready to print and present when entering Laos. You’re allowed to stay for up to 30 days for tourism. It’s stress-free and saves time compared to old visa methods. I feel much more confident about moving forward with my travel plans. Thanks again for sharing real, usable info without overcomplicating it!
kjxlcfzv
kjxlcfzv
This was such an enjoyable read! Your blog always makes me feel like I’m tagging along on your trips. I love how honest and natural your writing is—it doesn’t feel scripted at all. The details you add, especially the small cultural bits, make a huge difference. Thanks for taking the time to share your experiences. Looking forward to more!
This was such an enjoyable read! Your blog always makes me feel like I’m tagging along on your trips. I love how honest and natural your writing is—it doesn’t feel scripted at all. The details you add, especially the small cultural bits, make a huge difference. Thanks for taking the time to share your experiences. Looking forward to more!
I genuinely enjoyed reading every word of this post! It’s rare to find something that’s not only insightful but also enjoyable from beginning to end. I could tell that you put care into how you explained everything, which made it super easy to understand. I really liked how your style remained warm and respectful throughout. You’re doing an incredible job making readers feel connected to your writing. Keep doing what you do best—you’ve created something memorable. I’ll definitely be returning to read more and share this with friends. This blog deserves more attention for the great work it offers!
I genuinely enjoyed reading every word of this post! It’s rare to find something that’s not only insightful but also enjoyable from beginning to end. I could tell that you put care into how you explained everything, which made it super easy to understand. I really liked how your style remained warm and respectful throughout. You’re doing an incredible job making readers feel connected to your writing. Keep doing what you do best—you’ve created something memorable. I’ll definitely be returning to read more and share this with friends. This blog deserves more attention for the great work it offers!
This was an outstanding read—thank you for putting so much thought into your writing! Everything was presented in such a balanced and inviting way. I could tell you really care about delivering useful and uplifting content. You’ve got a writing style that feels both polished and personable, and that makes a huge difference. I especially liked how you maintained a friendly, upbeat tone without losing depth. It’s refreshing to see this kind of quality in a post. Keep sharing your insights and good vibes. I’ll definitely be returning to your blog soon. This kind of content is truly valuable! traveling to Cameroon is now so much easier thanks to the e visa cameroon option available for international visitors. This digital process saves a lot of time and eliminates unnecessary paperwork. The online application is straightforward and helps you avoid long queues or unnecessary delays. It’s perfect for those who love quick, efficient travel planning. With this system, tourists and business travelers can get approval before they even board their flight. The digital format also helps maintain accurate travel records. I highly recommend exploring this option if you’re planning a trip to this beautiful African destination.
This was an outstanding read—thank you for putting so much thought into your writing! Everything was presented in such a balanced and inviting way. I could tell you really care about delivering useful and uplifting content. You’ve got a writing style that feels both polished and personable, and that makes a huge difference. I especially liked how you maintained a friendly, upbeat tone without losing depth. It’s refreshing to see this kind of quality in a post. Keep sharing your insights and good vibes. I’ll definitely be returning to your blog soon. This kind of content is truly valuable! traveling to Cameroon is now so much easier thanks to the e visa cameroon option available for international visitors. This digital process saves a lot of time and eliminates unnecessary paperwork. The online application is straightforward and helps you avoid long queues or unnecessary delays. It’s perfect for those who love quick, efficient travel planning. With this system, tourists and business travelers can get approval before they even board their flight. The digital format also helps maintain accurate travel records. I highly recommend exploring this option if you’re planning a trip to this beautiful African destination.
Reading this post was an absolute delight! The writing had a nice rhythm that made it flow effortlessly from point to point. I was engaged the whole way through and found every section meaningful. It’s clear you know your subject well and have taken time to present it in the most accessible way possible. I also appreciated the positive tone—it made the content more welcoming and enjoyable to engage with. I look forward to reading more of your blog. This was a great example of how thoughtful writing can leave a lasting impression. Keep sharing your insights—they really matter!
Reading this post was an absolute delight! The writing had a nice rhythm that made it flow effortlessly from point to point. I was engaged the whole way through and found every section meaningful. It’s clear you know your subject well and have taken time to present it in the most accessible way possible. I also appreciated the positive tone—it made the content more welcoming and enjoyable to engage with. I look forward to reading more of your blog. This was a great example of how thoughtful writing can leave a lasting impression. Keep sharing your insights—they really matter!
It’s always refreshing to come across content that respects the reader’s time and curiosity. This post did exactly that. From the first sentence to the last, you maintained a friendly tone and a helpful structure. The simplicity in your words doesn’t take away from the depth of the message. I found this both insightful and easy to absorb, which is a rare combination. Thank you for crafting such a thoughtful piece. You’ve definitely gained a reader who appreciates your style.
It’s always refreshing to come across content that respects the reader’s time and curiosity. This post did exactly that. From the first sentence to the last, you maintained a friendly tone and a helpful structure. The simplicity in your words doesn’t take away from the depth of the message. I found this both insightful and easy to absorb, which is a rare combination. Thank you for crafting such a thoughtful piece. You’ve definitely gained a reader who appreciates your style.
This made me pause and appreciate the moment in a rich and wonderful way. It’s a rare feeling when something makes you appreciate the here and now and find peace in it. Thank you for creating that moment for me today. Your kindness has a way of touching people’s hearts and adding a bit more happiness to their day. I’m truly grateful for this wonderful feeling you provided.
This made me pause and appreciate the moment in a rich and wonderful way. It’s a rare feeling when something makes you appreciate the here and now and find peace in it. Thank you for creating that moment for me today. Your kindness has a way of touching people’s hearts and adding a bit more happiness to their day. I’m truly grateful for this wonderful feeling you provided.
Very useful article! I’ve been helping my cousin from China plan her first international trip, and Turkey is at the top of her list. We were confused by one simple but important question—do Chinese citizens need a visa for Turkey?—and your post explained it perfectly. I love how you outlined the e-Visa system and clarified what’s needed to qualify. That alone saved us so much time! Your writing is easy to follow and super informative, which isn’t always the case with travel blogs. Thanks for creating content that travelers can actually rely on. I’m looking forward to reading more of your posts as we get further into trip planning.
After going through this post, I felt so much better about planning my trip. It’s written in such a straightforward, reader-friendly way that makes even tricky topics easier to handle. I appreciate how the blog focuses on practical advice without confusing jargon. It feels like it’s written by someone who understands travelers’ concerns. I’ll be saving this post for future use and recommending it to others. Good, honest, and easy-to-understand travel advice like this is surprisingly hard to find these days. Big thanks to the writer for creating content that actually helps people without overcomplicating things — really great work.