Skip to content

SlavyanDesu/NekoBocc

Repository files navigation

20230115-133928

A simple and lightweight NekoPoi scraper.

NPM Version Package Size
CodeFactor FOSSA Status

Installation

npm install nekobocc

Loading and Configuring the Module

As of v1.3.x, this module supports both ESM and CommonJS.

ES Modules (ESM)

import NekoBocc from "nekobocc";
const nekobocc = new NekoBocc();

CommonJS

const NekoBocc = require("nekobocc").default;
const nekobocc = new NekoBocc();

Example

import NekoBocc from "nekobocc";
const nekobocc = new NekoBocc();

// Get a list of released hentai.
nekobocc.release()
  .then((res) => console.log(res));

Results

HentaiRelease

[
  {
    img: 'https://nekopoi.care/wp-content/uploads/2022/02/vlcsnap-2022-02-06-03h46m23s608-300x169.png',
    title: '[4K] Akane wa Tsumare Somerareru Episode 2 Subtitle Indonesia',
    url: 'https://nekopoi.care/akane-wa-tsumare-somerareru-episode-2-subtitle-indonesia/',
    genre: [
      'Ahegao',
      'Armpit',
      ...
    ],
    duration: '16 menit'
  }
]

EpisodeMetadata

{
  img: 'https://nekopoi.care/wp-content/uploads/2022/02/vlcsnap-2022-02-06-03h46m23s608-300x169.png',
  title: '[4K] Akane wa Tsumare Somerareru Episode 2 Subtitle Indonesia – NekoPoi',
  synopsis: 'Akane yang merasa tersanjung dengan...',
  genre: [
    'Ahegao',
    'Armpit',
    ...
  ],
  producer: [ 'Antechinus' ],
  duration: '16 menit',
  size: {
    '360P': '29MB',
    '480P': '44MB',
    '720P': '98MB',
    '1080P': '195MB'
  },
  download: {
    '1080p': [
      'https://linkpoi.me/imQD',
      ...
    ],
    '720p': [
      'https://linkpoi.me/EsYB',
      ...
    ],
    '480p': [
      'https://linkpoi.me/vLjPqWvJ',
      ...
    ],
    '360p': [
      'https://linkpoi.me/SvDBaJ',
      ...
    ]
  }
}

HentaiMetadata

{
  img: 'https://nekopoi.care/wp-content/uploads/2022/01/Akane-wa-Tsumare-Somerareru2-212x300.jpg',
  title: 'Akane wa Tsumare Somerareru – NekoPoi',
  synopsis: 'Akane yang merasa tersanjung dengan...',
  views: 47457,
  japanese: '茜ハ摘マレ染メラレル',
  category: 'Hentai',
  episode: 2,
  status: 'Completed',
  aired: 'Feb 04, 2022',
  producer: [ 'Antechinus' ],
  genre: [
    'Ahegao',
    'Armpit',
    ...
  ],
  duration: '16 min',
  score: 6.89,
  url: [
    'https://nekopoi.care/akane-wa-tsumare-somerareru-episode-1-subtitle-indonesia/',
    'https://nekopoi.care/akane-wa-tsumare-somerareru-episode-2-subtitle-indonesia/'
  ]
}

Methods

nekobocc.release([page])

  • page (optional) - Page number to be shown. Default is 1.
  • Returns a HentaiRelease.

nekobocc.search(query)

  • query (string, required) - Search query.
  • Returns a HentaiRelease.

nekobocc.get(url)

nekobocc.random()

License

This project is licensed under the MIT License. See the LICENSE file for details.