🏷️ Lux 是一个用 Go 构建的跨平台快速简单的视频下载器。
🚨 项目来源
项目:https://github.com/iawia002/lux/
💡 项目特性
•支持 WindowsMacOSLinux
•下载视频/图片/音频/播放列表/字幕
•继续下载/自动重试
•支持附加 Cookie 和代理
•支持多线程、重用提取数据
•指定输出路径或名称
•支持网站:
•YouTube/Facebook/Twitter/Instagram
•抖音/优酷/爱奇艺/芒果/腾讯视频
•P/X/Tumblr/Tiktok
•虎扑/虎牙/喜马拉雅/微博
•……
🚩 支持平台
注意:
优酷的 ccode经常变化导致 lux 不可用,如果你知道有新的可用的 ccode,可以直接使用lux -ccode … 而不用等待 lux 更新(当然,也欢迎你给我们提一个 Pull request 来更新默认的 ccode) 最好是每次下载都附带登录过的 Cookie 以避免部分ccode的问题.
站点 | 网址 | 🎬 Videos | 🌁 Images | 🔊 Audio | 📚 Playlist | 🍪 VIP adaptation |
---|---|---|---|---|---|---|
抖音 | https://www.douyin.com | - [x] |
|
- [x]
| | | |
| 哔哩哔哩 | https://www.bilibili.com |
- [x]
| | |
- [x]
|
- [x]
|
| 半次元 | https://bcy.net | |
- [x]
| | | |
| pixivision | https://www.pixivision.net | |
- [x]
| | | |
| 优酷 | https://www.youku.com |
- [x]
| | | |
- [x]
|
| YouTube | https://www.youtube.com |
- [x]
| | |
- [x]
| |
| 西瓜视频(头条) | https://m.toutiao.com
, https://v.ixigua.com
, https://www.ixigua.com |
- [x]
| | | | |
| 爱奇艺 | https://www.iqiyi.com |
- [x]
| | | | |
| 新片场 | https://www.xinpianchang.com |
- [x]
| | | | |
| 芒果 TV | https://www.mgtv.com |
- [x]
| | | | |
| 糖豆广场舞 | https://www.tangdou.com |
- [x]
| | | | |
| Tumblr | https://www.tumblr.com |
- [x]
|
- [x]
| | | |
| Vimeo | https://vimeo.com |
- [x]
| | | | |
| Facebook | https://facebook.com |
- [x]
| | | | |
| 斗鱼视频 | https://v.douyu.com |
- [x]
| | | | |
| 秒拍 | https://www.miaopai.com |
- [x]
| | | | |
| 微博 | https://weibo.com |
- [x]
| | | | |
| Instagram | https://www.instagram.com |
- [x]
|
- [x]
| | | |
| Twitter | https://twitter.com |
- [x]
| | | | |
| 腾讯视频 | https://v.qq.com |
- [x]
| | | | |
| 网易云音乐 | https://music.163.com |
- [x]
| | | | |
| 音悦台 | https://yinyuetai.com |
- [x]
| | | | |
| 极客时间 | https://time.geekbang.org |
- [x]
| | | | |
| 聯合新聞網 | https://udn.com |
- [x]
| | | | |
| TikTok | https://www.tiktok.com |
- [x]
| | | | |
| 好看视频 | https://haokan.baidu.com |
- [x]
| | | | |
| AcFun | https://www.acfun.cn |
- [x]
| | |
- [x]
| |
| Eporner | https://eporner.com |
- [x]
| | | | |
| StreamTape | https://streamtape.com |
- [x]
| | | | |
| 虎扑 | https://hupu.com |
- [x]
| | | | |
| 虎牙视频 | https://v.huya.com |
- [x]
| | | | |
| 喜马拉雅 | https://www.ximalaya.com | | |
- [x]
| | |
| 快手 | https://www.kuaishou.com |
- [x]
| | | | |
| Reddit | https://www.reddit.com |
- [x]
|
- [x]
| | | |
| VKontakte | https://vk.com |
- [x]
| | | | |
🧿 软件下载
本文操作用到的软件
🔗附件 :lux_0.15.0_Windows_64-bit.rar
⛅链接: https://pan.baidu.com/s/18ZhYcxaPB8NNi1mtlTJvWA?pwd=yr9b 提取码:yr9b
🛠️ 实际操作
- 测试环境:Windows
- 从 FFmpeg Builds 下载压缩包,将其中 bin/ffmpeg.exe 解压出来备用
- 打开lux Releases
- 32位系统下载 lux_0.15.0_Windows_32-bit.zip ,并解压
- 64位系统下载 lux_0.15.0_Windows_64-bit.zip ,并解压
之后将 ffmpeg.exe 复制到和 lux_0.15.0_Windows_64-bit 同一目录下
- 在 lux_0.15.0_Windows_64-bit 目录下输入 “cmd”回车
- 会在当前目录打开命令提示符对话框
- 输入命令 lux —help 查看格式说明
- 打开一个要下载视频的平台
- 比如:爱奇艺
- 在 CMD 命令提示符下输入下载视频格式即可
格式: lux “视频地址”
例子: lux “ https://www.iqiyi.com/v_1aopfcjs1w8.html?vfrm=pcw_home&vfrmblk=712211_cainizaizhui&vfrmrst=712211_cainizaizhui_image2”
- 下载完成后会自动保存文件到 lux 程序目录下
🔥 进阶使用
1. 视频下载
$ lux “https://www.youtube.com/watch?v=dQw4w9WgXcQ” Site: YouTube youtube.com Title: Rick Astley - Never Gonna Give You Up (Video) Type: video Stream: [248] —————————- Quality: 1080p video/webm; codecs=”vp9” Size: 63.93 MiB (67038963 Bytes)
# download with: lux -f 248 ...
41.88 MiB / 63.93 MiB [=================>——————-] 65.51% 4.22 MiB/s 00m05s
The i option displays all available quality of video without downloading.
$ lux -i “https://www.youtube.com/watch?v=dQw4w9WgXcQ” Site: YouTube youtube.com Title: Rick Astley - Never Gonna Give You Up (Video) Type: video Streams: # All available quality [248] —————————- Quality: 1080p video/webm; codecs=”vp9” Size: 49.29 MiB (51687554 Bytes)
# download with: lux -f 248 ...
[137] -------------------
Quality: 1080p video/mp4; codecs="avc1.640028"
Size: 43.45 MiB (45564306 Bytes)
# download with: lux -f 137 ...
[398] -------------------
Quality: 720p video/mp4; codecs="av01.0.05M.08"
Size: 37.12 MiB (38926432 Bytes)
# download with: lux -f 398 ...
[136] -------------------
Quality: 720p video/mp4; codecs="avc1.4d401f"
Size: 31.34 MiB (32867324 Bytes)
# download with: lux -f 136 ...
[247] -------------------
Quality: 720p video/webm; codecs="vp9"
Size: 31.03 MiB (32536181 Bytes)
# download with: lux -f 247 ...
Use lux -f stream "URL" to download a specific stream listed in the output of i option.
2. 其他下载
If Lux is provided the URL of a specific resource, then it will be downloaded directly:
$ lux “https://img9.bcyimg.com/drawer/15294/post/1799t/1f5a87801a0711e898b12b640777720f.jpg” lux doesn’t support this URL right now, but it will try to download it directly Site: Universal Title: 1f5a87801a0711e898b12b640777720f Type: image/jpeg Stream: [default] —————————- Size: 1.00 MiB (1051042 Bytes)
# download with: lux -f default "URL"
1.00 MiB / 1.00 MiB [===================================] 100.00% 1.21 MiB/s 0s
3. 播放列表下载
The -p option downloads an entire playlist instead of a single video.
$ lux -i -p “https://www.bilibili.com/bangumi/play/ep198061” Site: 哔哩哔哩 bilibili.com Title: Doctor X 第四季:第一集 Type: video Streams: # All available quality [default] —————————- Quality: 高清 1080P Size: 845.66 MiB (886738354 Bytes)
# download with: lux -f default "URL"
Site: 哔哩哔哩 bilibili.com Title: Doctor X 第四季:第二集 Type: video Streams: # All available quality [default] —————————- Quality: 高清 1080P Size: 930.71 MiB (975919195 Bytes)
# download with: lux -f default "URL"
……
You can use the -start, -end or -items option to specify the download range of the list:
-start Playlist video to start at (default 1) -end Playlist video to end at -items Playlist video items to download. Separated by commas like: 1,5,6,8-10
For bilibili playlists only:
-eto File name of each bilibili episode doesn’t include the playlist title
4. 批量下载
You can also download multiple URLs at once:
$ lux -i “https://www.bilibili.com/video/av21877586” “https://www.bilibili.com/video/av21990740” Site: 哔哩哔哩 bilibili.com Title: 【莓机会了】甜到虐哭的13集单集MAD「我现在什么都不想干,更不想看14集」 Type: video Streams: # All available quality [default] —————————- Quality: 高清 1080P Size: 51.88 MiB (54403767 Bytes)
# download with: lux -f default "URL"
Site: 哔哩哔哩 bilibili.com Title: 【莓救了】甜到虐哭!!!国家队单集MAD-当熟悉的bgm响起,眼泪从脸颊滑下 Type: video Streams: # All available quality [default] —————————- Quality: 高清 1080P Size: 77.63 MiB (81404093 Bytes)
# download with: lux -f default "URL"
These URLs will be downloaded one by one.
You can also use the -F option to read URLs from file:
$ lux -F ~/Desktop/u.txt Site: 微博 weibo.com Title: 在Google,我们设计什么? via@阑夕 Type: video Stream: [default] —————————- Size: 19.19 MiB (20118196 Bytes)
# download with: lux -f default "URL"
19.19 MiB / 19.19 MiB [=================================] 100.00% 9.69 MiB/s 1s ……
You can use the -start, -end or -items option to specify the download range of the list:
-start File line to start at (default 1) -end File line to end at -items File lines to download. Separated by commas like: 1,5,6,8-10
5. B站ep、av号下载
使用b站的ep 或 av 来下载视频
⁉️ 科普:B站不但有av号和bv号,竟然还有mc号、ep号?
$ lux -i ep198381 av21877586 Site: 哔哩哔哩 bilibili.com Title: 狐妖小红娘:第79话 南国公主的吃货本色 Type: video Streams: # All available quality [default] —————————- Quality: 高清 1080P Size: 485.23 MiB (508798478 Bytes)
# download with: lux -f default "URL"
Site: 哔哩哔哩 bilibili.com Title: 【莓机会了】甜到虐哭的13集单集MAD「我现在什么都不想干,更不想看14集」 Type: video Streams: # All available quality [default] —————————- Quality: 高清 1080P Size: 51.88 MiB (54403767 Bytes)
# download with: lux -f default "URL"
6. 关联
:::warning
各平台下载 网站
:::