hanime-hunter
![](https://unv-shield.librian.net/api/unv_shield?txt=%E7%BB%85%E5%A3%AB&scale=1.3)
![](https://unv-shield.librian.net/api/unv_shield?repo=acgtools/hanime-hunter&scale=1.7)
![](https://unv-shield.librian.net/api/unv_shield?txt=%E5%A5%BD%EF%BC%81&scale=2.0)
English | 简体中文
A CLI app to download HAnime.
If you like this repo, please consider giving it a star (o゜▽゜)o☆ . Thank you OwO.
Random Wink OvO
![](https://political-capable-roll.glitch.me/get/@acg_tools_hanime_hunter?theme=rule34)
Choose your faction
Check here and chooes a reaction: Pure Love Knight ❤️, NTR Warrior:🚀
![](https://raw.githubusercontent.com/dreamjz/pics/main/pics/2023/202312102326670.jpg)
Installation
Using go
$ go install -ldflags "-s -w" github.com/acgtools/hanime-hunter@latest
Download from releases
release page
Supported Site
NSFW Warning, the following site may contain sensitive content.
Site |
Language |
Episode |
Series |
Playlist |
Status |
hanime1.me |
Chinese |
✓ |
✓ |
✓ |
Available |
hanime.tv |
English |
✓ |
✓ |
✓ |
Available |
Discord
Quick Start
Prerequisites
Ensure that your terminal charset is UTF-8
Windows
> chcp
Active code page: 65001
# if code page is not 65001(utf-8), change it temporarily
> chcp 65001
If you want to set the default charset, follow the steps:
- Start -> Run -> regedit
- Go to
[HKEY_LOCAL_MACHINE\Software\Microsoft\Command Processor\Autorun]
- Change the value to
@chcp 65001>nul
If Autorun
is not present, you can add a New String
.
This approach will auto-execute @chcp 65001>nul
when cmd
starts.
Linux
$ echo $LANG
en_US.UTF-8
FFmpeg
Command Help
$ 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.
Download
$ 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")
Hanime1me
Only one episode
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://hanime1.me/watch?v=xxxx
![](https://github.com/acgtools/hanime-hunter/raw/v0.3.2/docs/assets/hanime1me/single_file.gif)
Full series based on the specified episode
# 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://hanime1.me/watch?v=xxxx
![](https://github.com/acgtools/hanime-hunter/raw/v0.3.2/docs/assets/hanime1me/series.gif)
Skip downloaded files
If some files get stuck during downloading, stop the program and then restart the download.
It will skip the files that have already been downloaded.
![](https://github.com/acgtools/hanime-hunter/raw/v0.3.2/docs/assets/hanime1me/dl_stuck.gif)
![](https://github.com/acgtools/hanime-hunter/raw/v0.3.2/docs/assets/hanime1me/restart.gif)
Download playlist
$ hani dl https://hanime1.me/playlist?list=xxxx
![](https://github.com/acgtools/hanime-hunter/raw/v0.3.2/docs/assets/hanime1me/playlist.gif)
Specify the output directory
# The anime will be saved in output_dir/anime_series_title/
$ hani dl -o <output_dir>
Specify the quality
# You can specify the quality of video
# if it is not exist, the default (highest quality) will be downloaded
$ hani dl -q "720p" https://hanime1.me/watch?v=xxxx
Get info only
# Get only the downloadable video info:
# title, quality, file extension
$ hani dl -i https://hanime1.me/watch?v=xxxx
Hanimetv
Only one episode
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
![](https://github.com/acgtools/hanime-hunter/raw/v0.3.2/docs/assets/hanimetv/single_file.gif)
Full series based on the specified episode
# 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
![](https://github.com/acgtools/hanime-hunter/raw/v0.3.2/docs/assets/hanimetv/series.gif)
Skip downloaded files
If some files get stuck during downloading, stop the program and then restart the download.
It will skip the files that have already been downloaded.
Download playlist
$ hani dl https://hanime.tv/playlists/xxxx
![](https://github.com/acgtools/hanime-hunter/raw/v0.3.2/docs/assets/hanimetv/playlist.gif)
Specify the output directory
# The anime will be saved in output_dir/anime_series_title/
$ hani dl -o <output_dir>
Specify the quality
# 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 info only
# Get only the downloadable video info:
# title, quality, file extension
$ hani dl -i https://hanime.tv/videos/hentai/xxx
Issue
Feel free to create issues to report bugs or request new features.
Star History
![Star History Chart](https://api.star-history.com/svg?repos=acgtools/hanime-hunter&type=Date)