Giter VIP home page Giter VIP logo

manga-downloader's Introduction

Manga Downloader

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.

About

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.

Features

  • Download manga chapters from Mangadex
  • Download nhentai galleries
  • Easily integrate with other applications

Installation

1. Clone the repository

git clone https://github.com/yoshikazuuu/manga-downloader.git
cd manga-downloader

2. Set up the environment file.

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

3. Build the Docker image.

You can configure it to link with the docker hub or just leave it as it is.

docker build -t manga-downloader .

4. Run the Docker container.

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

Usage

To download a chapter from mangadex or nhentai or integrate it to your app, follow these steps:

  1. 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}
  1. If the job is successful, the app will return a JSON response with {success: true}.

  2. 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

Contributing

Feel free to fork the repository, make changes, and submit a pull request. We appreciate your contributions!

License

Manga Downloader is released under the MIT License.

manga-downloader's People

Contributors

yoshikazuuu avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.