Introduction
A script for backing up E-Hentai favorites. It generates CBZ files compatible with Komga for easy shelving of downloads to Komga.
Translated by GPT-4.
This script is for personal use and is hosted on GitHub just to facilitate the needs of netizens. Due to my limited personal abilities, the code definitely contains many issues. You should have a certain ability to handle this script yourself.
You should be aware that this script is not responsible for any potential losses that may occur, including but not limited to IP being blocked, accounts being banned, loss of files, and other potential risks. For details, please refer to the license used by this project.
Since e-hentai.org recently deployed CloudFlare shields, this script does not use a headless browser to execute JS scripts and cannot temporarily bypass them. Due to the increased probability of triggering CloudFlare shields, downloads through the e-hentai.org site are likely to trigger a 403 access denial. A temporary solution is to download from the exhentai.org site, please consider whether to use e-hentai.org for download.
Friendly reminder
If you don't know how to do something (like how to get cookies), please first ask Google, Bing and other search engines or artificial intelligences like ChatGPT.
These products have gathered the crystallization of human wisdom, asking them is much more efficient than shouting for help everywhere.