Manga Downloader is a lightweight Express.js application that allows you to download manga chapters from Mangadex and nhentai galleries easily by providing the chapterID or galleryID. The app utilizes Docker for easy deployment and management.
This project was created to support my Discord bot Mizuki and primarily serves as a self-learning exercise. If you find the code helpful and notice areas for improvement, please feel free to contribute.
- Download manga chapters from Mangadex
- Download nhentai galleries
- Easily integrate with other applications
git clone https://github.com/yoshikazuuu/manga-downloader.git
cd manga-downloader
Enable HTTPS configuration in this step. Create a copy of the example environment file, and rename it to .env.
cp .env.example .env
nano .env
Customize the environment variables to your needs.
HTTPS=true
PRIVATEKEY=private.pem
CERT=cert.pem
CA=ca.pem
You can configure it to link with the docker hub or just leave it as it is.
docker build -t manga-downloader .
Ensure you provide the path to your environment file.
docker run -d -p 3069:3069 -v /path/to/your/certs:/certs --name manga-downloader --env-file .env manga-downloader
To download a chapter from mangadex or nhentai or integrate it to your app, follow these steps:
- Send a POST request to create a job. Replace {chapterID} or {galleryID} with the actual ID of the chapter or gallery you want to download.
curl -X POST http://localhost:3069/download/mangadex/{chapterID}
curl -X POST http://localhost:3069/download/nhentai/{galleryID}
-
If the job is successful, the app will return a JSON response with
{success: true}
. -
To download the file, send a GET request to the same endpoint with .zip appended to the end of the URL.
curl http://localhost:3069/download/mangadex/{chapterID}.zip
curl http://localhost:3069/download/nhentai/{galleryID}.zip
Feel free to fork the repository, make changes, and submit a pull request. We appreciate your contributions!
Manga Downloader is released under the MIT License.