0.1.71 • Published 10 months ago

@rizxyu/nhentai v0.1.71

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

nhentai

suck

!CAUTION Contains adult content, I hope all those who use it are adults:v

Found bugs?

Group Bot

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 titles
  • newUpload() - Latest upload of hentai
  • populerNow() - Popular Hentai now
  • getInfo(id) - get result json info hentai
  • parseImage(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
0.1.71

10 months ago

0.1.69

10 months ago