~liliace/miso

An nhentai downloader
fix: retry request when rate limited
refactor: read default dpi
fix: double check png signature

refs

main
browse  log 

clone

read-only
https://git.sr.ht/~liliace/miso
read/write
git@git.sr.ht:~liliace/miso

You can also use your local clone with git send-email.

#miso

An nhentai downloader.

#Usage

miso [-t DIR] CODE [CODE ...]

You need to first visit https://nhentai.net on firefox and verify that you are human. This will generate cookies which miso will automatically use to make authorized requests. These cookies expire after a few hours so if you have not accessed the site in a while, you will need to re-verify your humanness.

You must also copy the user agent string of firefox to miso's configuration file (see below), since the cookies and user agent must match for requests to be authorized. You will have to update this manually every time firefox updates. Sorry, there is no easy way of retrieving the user agent :(

#Configuration

Configuration is located at $XDG_CONFIG_HOME/miso/miso.ini, or $HOME/.config/miso/miso.ini if $XDG_CONFIG_HOME is undefined.

Example configuration:

user-agent=`Mozilla/5.0 (X11; Linux x86_64; rv:126.0) Gecko/20100101 Firefox/126.0`
dir=~/Sauce
  • user-agent: the user agent string of firefox. This can be found on the about:support page on firefox. If your user agent string contains a semicolon, you must quote it with backticks `.
  • dir: The directory to store the downloaded files. If this value is empty, files will be downloaded to the working directory.

#Installation

miso requires go at compile-time, and firefox at runtime

make release
doas make PREFIX=/usr install

To uninstall

doas make PREFIX=/usr uninstall