用于下载里番的 CLI 工具。
如果你喜欢这个程序,可以帮忙给一个 star (o゜▽゜)o☆ ,谢谢 OwO。
随机 Wink OvO
点击 这里 然后选择一个表情:纯爱战士 ❤️, 牛头人:🚀
$ go install -ldflags "-s -w" github.com/acgtools/hanime-hunter@latest
NSFW 警告, 以下站点包含敏感内容.
Site | Language | Episode | Series | Playlist | Status |
---|---|---|---|---|---|
hanime1.me | 中文 | ✓ | ✓ | ✓ | Available |
hanime.tv | English | ✓ | ✓ | ✓ | Available |
Windows
> chcp
Active code page: 65001
# if code page is not 65001(utf-8), change it temporarily
> chcp 65001
如果你想修改默认的字符集, 按照以下步骤:
- 开始 -> 运行 -> regedit
- 找到
[HKEY_LOCAL_MACHINE\Software\Microsoft\Command Processor\Autorun]
- 将其值修改为
@chcp 65001>nul
如果 Autorun
不存在, 你可以创建一个新的字符串类型的键值对.
此方法将在cmd
启动时自动执行 @chcp 65001>nul
。
Linux
$ echo $LANG
en_US.UTF-8
$ hani -h
HAnime downloader. Repo: https://github.com/acgtools/hanime-hunter
Usage:
hani [command]
Available Commands:
dl download
help Help about any command
version Print version info
Flags:
-h, --help help for hani
--log-level string log level, options: debug, info, warn, error, fatal (default "info")
Use "hani [command] --help" for more information about a command.
$ hani help dl
download
Usage:
hani dl [flags]
Flags:
-h, --help help for dl
-i, --info get anime info only
--low-quality download the lowest quality video
-o, --output-dir string output directory
-q, --quality string specify video quality. e.g. 1080p, 720p, 480p ...
--retry uint8 number of retries, max 255 (default 10)
-s, --series download full series
Global Flags:
--log-level string log level, options: debug, info, warn, error, fatal (default "info")
默认下载最高画质。
# 从观看页下载
# 视频会保存在 ./番剧名称/
$ hani dl https://hanime1.me/watch?v=xxxx
# 下载整个系列
# E.g. 比如你给的 Anime_Foo_02 的链接
# 会将 Anime_Foo 整个系列全部下载下来 (Anime_Foo_01, Anime_Foo_02, ...)
$ hani dl -s https://hanime1.me/watch?v=xxxx
如果下载时有些文件卡住了,可以停止程序,然后重新开始下载。
已经完成的文件会被跳过。
$ hani dl https://hanime1.me/playlist?list=xxxx
# The anime will be saved in output_dir/anime_series_title/
$ hani dl -o <output_dir>
# 你可以指定画质
# 如果指定的画质不存在,默认下载最高画质
$ hani dl -q "720p" https://hanime1.me/watch?v=xxxx
# 获取下载文件信息:
# 标题, 画质, 文件类型
$ hani dl -i https://hanime1.me/watch?v=xxxx
The default quality will be the highest quality.
# Download from the watch page
# The anime will be saved in ./anime_series_title/
$ hani dl https://hanime.tv/videos/hentai/xxx
# Download the full series
# E.g. If you provide the link of the Anime_Foo_02
# then the full series of Anime_Foo will be downloaded (Anime_Foo_01, Anime_Foo_02, ...)
$ hani dl -s https://hanime.tv/videos/hentai/xxx
Not supported
$ hani dl https://hanime.tv/playlists/xxxx
# The anime will be saved in output_dir/anime_series_title/
$ hani dl -o <output_dir>
# You can specify the quality of video
# if it is not exists, the default (highest quality) will be downloaded
$ hani dl -q "720p" https://hanime.tv/videos/hentai/xxx
# Get only the downloadable video info:
# title, quality, file extension
$ hani dl -i https://hanime.tv/videos/hentai/xxx
欢迎创建 issue 来报告 bug 或者 请求添加新特性。