A simple CLI tool for downloading content from the streaming platform hianime.to + social media platfroms.
This tool works best if you have a VPN installed with Adblock support, as I have not been able to get a working ad
blocker working with the chrome session.
- Python3 + PIP3
- Chrome Installed
-
Download the files from the repository.
git clone https://github.com/gheatherington/HianimeDownloader
-
Navigate into the directory it was downloaded to in your terminal.
-
Using pip install all the requirement from the
requirements.txtfile.-
For Windows
pip install -r requirements.txt
-
For Linux/macOS you may have to first create a virtual environment, so use the following commands.
python3 -m venv .venv source .venv/bin/activate python3 -m pip install -r requirements.txt
-
-
You are now ready to run the program with the following command.
-
Windows
python main.py
-
Linux/MacOS
python3 main.py
-
-
Update the repository before running (as it is still being worked on)
git fetch https://github.com/gheatherington/HianimeDownloader
-
After running the
main.pyfile, enter the name of the anime you would like to search for from hianime.to or provide a link to the content you would like to download -
If you provided a link you will jump to either the Downloading from HiAnime or Downloading from Other
-
If you enter a name of an anime it will bring up a selection of anime options from the site, select the desired one with the corresponding number.
- Next you will be prompted to either select which version of the anime you would like; either sub or dub. If only one was available, it will be automatically selected for you.
- The next two prompts ask which episodes you want to download. You first provide the first episode, then the last episode you would like to download (both values are inclusive)
- The next prompt asks what season in the series this content is as an integer.
- The final prompt asks you which of the streaming servers you would like to download from (HD-1, HD-2, etc.)
- Note if a redirect ad to a second tab is created, close the second tab manually and refresh the original site to continue download. (This will hopefully be patched eventually)
- Depending on the platform (view list of supported platforms) you will either be prompted to select a file name or it will be automatically chosen for you
You are able to pass parameters when running the file to add additional options.
-
-oor--output-dirlets you provide a path for the output files. For example,python3 main.py -o ~/Movies/ -
-lor--linkallows you to pass in a link to the content you want to download -
-nor--filenameallows you to pass in the name of the anime you are looking for, or the filename for the downloaded content from other platforms -
--no-subtitlesdownloads the content without looking for subtitle files -
--serverallows you to select the streaming server you would like to downlaod from. -
--ariauses the aria2c downloader for yt-dlp to download the content (untested)
python3 main.py -o ~/Desktop/ --server "HD-1" -n "Solo Leveling" --no-subtitles
Here is a current list of tested platforms
- TikTok
- Youtube (long form videos/shorts)
- Instagram (reels/images)