Code Monkey home page Code Monkey logo

kasu.nhentaiapi.js's Introduction

N-hentai API

unstable Downloads Build Status Snyk Vulnerabilities for npm package minified
lol
kasu.nhentaiapi.js

[PROJECT IS NOW DISCONTINUED]

Since I notice how my scraping code took too long to load
the Nhentai website now checks for the browser to check if its a bot or not
and I am not gonna work with this anymore.

Thank you all who used this package!

kinda funny how the dev says it. Well I can actually bypass it but will take more processe/time to fetch which kinda could be shit when used on some discord bots.


The "N-hentai-api" is a fast and easy to use api for connecting to nhentai.net and nhentai.to data.

  • Fast*
  • Easy to use
  • Reliable* :>
  • Discord friendly?

Install

To install "N-hentai-api" type these:

npm i kasu.nhentaiapi.js

Examples

How to use n-hentai-api

To get the basic info about the ID/Doujin:

const Example = require('kasu.nhentaiapi.js');
const ExampleApi = new Example();
/**
 * or const ExampleApi = new Example('start', "https://nhentai.net");
 * If you don't want to add the url and connection.start() after it.
 * because it automatically start the connection.
 * 
 * Check the documentation or the homepage for more info.
*/

//          ----number | strings can do----
const ID = 228922 //or "228922" or "https://nhentai.net/g/228922"
async function json(){

    // start the connection
    ExampleApi.url = "https://nhentai.net"
    ExampleApi.connection.start()

    const val = await ExampleApi.getID(ID).json()
    val.url
    // OR
    ExampleApi.getID(ID).json(data=>{data.url})
    // OR
    (await ExampleApi.getID(ID).json()).url
    // result: https://nhentai.net/g/228922/

    // closes the connection
    ExampleApi.connection.close()
}

For CLI

How to run:

nhentai 228922 

check the changelogs for more info


C# port new

C# of this project's parser is now available in beta. click here to go there.


(≧▽≦*) Other Informations (≧▽≦*)





embed


Enjoy using it! crediting me will be an appreciation!
Star it if you like it!

kasu.nhentaiapi.js's People

Contributors

ichimakikasura avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

melcanz

kasu.nhentaiapi.js's Issues

String[] usage over spaces and dashes

If the tag has a space like sole female please add a dash.

Instead of using - to represent a character space and a space to represent a new line, use string[] or simply array of strings and let the module handle the work.

Deploying fails on heroku on 3.9.3

Hi,

The latest version fails while deploying on heroku with the following message. Works fine locally on windows.
3.7.9 deploys successfully

-----> Installing dependencies
       Installing node modules
       npm ERR! code 2
       npm ERR! path /tmp/build_1b0b1442/node_modules/kasu.nhentaiapi.js
       npm ERR! command failed
       npm ERR! command sh -c md ..\kasuNhentaiJS & echo module.exports = require("kasu.nhentaiapi.js"); > ..\kasuNhentaiJS/index.js
       npm ERR! sh: 1: Syntax error: "(" unexpected

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.