Giter Site home page Giter Site logo

ecchimaster / nh-pdf-downloader Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tacoanime69/nh-pdf-downloader

0.0 0.0 0.0 94 KB

Downloads and coverts any doujin/manga from nhentai to PDF

License: GNU General Public License v3.0

Python 100.00%

nh-pdf-downloader's Introduction

nhentai PDF Downloader

Downloads and coverts any doujin/manga from nhentai to PDF

Installation

Clone

  • Clone this repo to your local machine using https://github.com/TacoAnime69/nh-pdf-downloader

Setup

update and install packages

$ pip3 install --upgrade pip
$ pip3 install -r requirements.txt

Running the Script

Navigate to the repo directory on your local machine. Then execute the following:

$ python3 __main__.py

Build

Use Pyinstaller and Anaconda to build

$ pip install pyinstaller
$ pyinstaller __main__.py

Running the build

Windows

Navigate to the dist directory cd dist\__main__\

$ __main__.exe

MacOS or Linux

Navigate to the dist directory cd dist/__main__/

$ __main__.out

Usage

[ To Download ]
    - Enter in the ID number(s)/webpage URL(s) of the doujin you wish to download.
    Note: Doujins must come from nhentai website. 
          This script will not work with any other site.
    Hint: ID numbers can be found in the URL. 
          https://nhentai.net/g/[id number]/
    - To create a queue (multiple downloads) enter all the ID numbers
    Note: -The order of the ID's does not matter.
          -ID(s) need any non numeric delimiter whether it be whitespace or hypen or mixed, whereas URL(s) 
           do not need any as each consecutive group of numbers is considered as one Id
    - Hit enter to begin downloading
    Note: If a doujin has the same name as an already downloaded item,
          then it will skip that download.
          If a doujin has a name that is too long, a warning will
          appear and prompt to enter a new name.
    Example:
    Enter ID(s)/webpage URL(s)/Command: 111111 222222,333333https://nhentai.net/g/444444https://nhentai.net/g/555555

[ Batch Downloading from text file ]
    -You can copy paste all the links of the doujins you want to download into a text file and set
     the value of batch in the config.txt to the path of this text file.
    Example: 
        Assume the text file "test.txt" in the same folder as the script has the following contents:
            111111 222222https://nhentai.net/g/444444https://nhentai.net/g/555555
            nhentai.net/g/666666
        Then all you have to do is set the value of the batch line to 
            batch = ".\\test.txt"
        and all the doujins posted will be downloaded when the script is run
    Note: The batch line in the config.txt will be reset every time the script is executed

[ Other Options ]
    When prompted, you may enter one of the other commands:
    - done : this will end execution of the program
    - help : this will display this text
    - open : this will open finder/files/file explorer to the
             default download folder

[ Threads ]
    - Set this option in the config file to specify how many pages of the same doujin are to be downloaded at once

[ Type ]
    - Set this option in the config file to specify the file type that the doujins to be saved as(pdf, cbt, cbz).

Note: A config file will be created automatically if it does not exist in the same folder as the script.

Note: as the images are being downloaded, a temporary folder is created to store the images. this folder will be deleted upon completion.

  • When you are done, enter done to exit script

Feature Request and Planned Features

Feel free to request features.

Planned Features

  • Enter multiple numbers at once (and let the script download all)
  • Create a config file that would allow the user to specify an output folder (and call it whatever they want)
  • Add CBR/CBZ support
  • Add config for automatically putting downloaded PDF into a sub-folder named after its parody, author, or language.

Considering

Features that will be added if enough people request them

  • A simple user interface
  • A Google Chrome / Firefox / Edge extension that would connect the script and direct download from the page

Contributing

You are welcome to contribute to this as you'd like!

Support

Before reaching out for support, please read the FAQ!

Feel free to reach out if you have any questions!

If you want to report a bug, please check out Issues and only use email.

nh-pdf-downloader's People

Contributors

tacoanime69 avatar ginowo avatar geewilakers avatar oliverj96 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.