@rizxyu/nhentai
v0.1.8--stable
Published
A TypeScript scraper for nhentai.net using axios and cheerio
Downloads
180
Maintainers
Readme
nhentai
[!CAUTION] Contains adult content, I hope all those who use it are adults:v
Found bugs?
installation
- From Npm & more stable (Recommended)
npm i @rizxyu/nhentai
- from github get the new version
npm i github:rizxyu/nhentai
Function?
search(query)
- Search for Hentai titlesnewUpload()
- Latest upload of hentaipopulerNow()
- Popular Hentai nowgetInfo(id)
- get result json info hentaiparseImage(url)
- Parse image from <result.images> urlgetInfo(id)
How to use
First, you can import the @rizxyu/nhentai
module
//IN COMMONJS OR CJS
const { Nhentai } = require("@rizxyu/nhentai");
//IN ESM
import { Nhentai } from "@rizxyu/nhentai";
uhh idunno
const hentai = new Nhentai();
Get New Upload😋
const newUp = await hentai.newUpload();
result
[{
thumbnail: string,
href: string,
caption: string
}]
Get Populer
const populer = await hentai.populerNow();
result
[{
thumbnail: string,
href: string,
caption: string
}]
GET INFO HENTAI FROM ID
const info = await hentai.getInfo(`00000`);
result
{
thumbnail: string,
title: string,
artist: string,
tags: string[],
categories: string[],
pages: string,
uploaded: string,
images: string[]
}
Parse Images from info.images
const parseImg = await hentai.parseImages(info.images[0]);
result
"https://i3.nhentai.net/galleries/xxxxx/x.jpg"
Version
list of latest versions
- V0.1.69 what's new?
- [X] Added
search, getInfo, parseImage, search, newUpload, populerNow
- V0.2.0 Next Update
- [ ] Added Headers