0.1.71 • Published 1 year ago
@rizxyu/nhentai v0.1.71
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/nhentaiFunction?
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
- Example in (CJS)
const { Nhentai } = require('nhentai-scraper');
const nhentai = new Nhentai();
(async () => {
const doujinInfo = await nhentai.getInfo('528895'); // enter valid ID
if (doujinInfo && doujinInfo.images.length > 0) {
const firstImageUrl = doujinInfo.images[0];
const imageSrc = await nhentai.parseImage(firstImageUrl);
console.log('First Image Source:', imageSrc); //parse image from firstImageUrl
}
})();
//Yang tau tau ajah- Example in (ESM)
import { Nhentai } from 'nhentai-scraper'
const nhentai = new Nhentai();
(async () => {
const doujinInfo = await nhentai.getInfo('528895'); // enter valid ID
if (doujinInfo && doujinInfo.images.length > 0) {
const firstImageUrl = doujinInfo.images[0];
const imageSrc = await nhentai.parseImage(firstImageUrl);
console.log('First Image Source:', imageSrc); //parse image from firstImageUrl
}
})();Version
list of latest versions
- V0.1.69 what's new?
- Added
search, getInfo, parseImage, search, newUpload, populerNow - V0.2.0 Next Update
- Added Headers