Code Monkey home page Code Monkey logo

nhentai-json-http-server's Introduction

nhentai-json-http-server

Parses nhentai-js through to http via json

Installation

  1. Clone this repository
  2. Open a console in the downloaded folder and run npm install
  3. Create a .env file inside the folder with PORT=(port) inside, replacing (port) your desired port (default port is 80).
  4. To start, run node njhs.js or npm test

Usage

The server can be access by goint to
http://(your server):(port)/(nhentai book id)
The json object will be parsed directly from nhentai-js.

Example json response

http://localhost:8080/147476

{
    "title": "(Reitaisai 12) [Kuma-tan Flash! (Yamu)] Tanetsuke Oji-san Hazard | Jizz Geezer Hazard (Touhou Project) [English]",
    "details": {
        "parodies": [
            "touhou project (10,479)"
        ],
        "characters": [
            "satori komeiji (536)"
        ],
        "tags": [
            "nakadashi (19,279)",
            "impregnation (8,836)",
            "dilf (6,935)",
            "bbm (5,469)",
            "unusual pupils (2,189)"
        ],
        "artists": [
            "yamu (77)"
        ],
        "groups": [
            "kuma-tan flash (84)",
            "reverse noise (69)"
        ],
        "languages": [
            "translated (60,245)",
            "english (45,046)"
        ],
        "categories": [
            "doujinshi (138,514)"
        ]
    },
    "pages": [
        "https://i.nhentai.net/galleries/865683/1.png",
        "https://i.nhentai.net/galleries/865683/2.png",
        "https://i.nhentai.net/galleries/865683/3.png",
        "https://i.nhentai.net/galleries/865683/4.png",
        "https://i.nhentai.net/galleries/865683/5.png",
        "https://i.nhentai.net/galleries/865683/6.png"
    ],
    "link": "https://nhentai.net/g/147476/"
}

nhentai-json-http-server's People

Contributors

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