Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nekopoi-scraper

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nekopoi-scraper

Simple nekopoi scraper

  • 2.6.8
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source


Simple

How To Use

Basic

  1. Install Packages
    npm install nekopoi-scraper
    
    or using yarn
    yarn add nekopoi-scraper
    
  2. Import packages
  • CommonJS
    /** Export name
    search or Search
    latest or getRecent
    detail or getId
    list
     */
    const { Search, getRecent, list, getId } = require("nekopoi-scraper");
    
  • ESM
    /** Export name
    search or Search
    latest or getRecent
    detail or getId
    list
     */
    import { Search, getRecent, list, getId } from "nekopoi-scraper";
    

Example

Get hentai by query
import { Search } from "nekopoi-scraper";

const query = "love";
const limit = 10; // limit output. default 10
Search(query, limit).then(async (data) => {
console.log(data);
});

Output

  [
    {
      "id": Number,
      "date": String,
      "title":String,
      "image": String,
      "type": String,
    },
    ...
  ]
Get latest/recent hentai
import { getRecent } from "nekopoi-scraper";

getRecent().then(async (data) => {
  console.log(data);
});
  • Output
[
  {
    id: Number,
    title: String,
    image: String,
    description: String,
  },
];
Get hentai detail by id
import { getId } from "nekopoi-scraper";

getId(21910).then(async (data) => {
  console.log(data);
});
  • Output
  {
    "id": Number,
    "date": String,
    "title": String,
    "description": String,
    "image": String,
    "info_meta": {
      "aliases": String,
      "episode": String,
      "status": String,
      "tayang": String,
      "produser": String,
      "genre": String,
      "durasi": String,
      "skor": String,
    },
    "episode": [
      {
        "id": Number,
        "date": String,
        "title": String,
        "image": String,
      },
      ...
    ]
  }
  • Output if id is episode
  {
    "id":Number,
    "title": String,
    "image": String,
    "series": {
      "id": Number,
      "title": String,
      "content": String,
      "image": String,
      "genre": String,
    }
    "stream": [
      {
        "link": String
      },
      ...
    ],
    "download": [
      {
        "type": String,
        "links": [
           "name": String,
           "link": String
        ]
      },
      ...
    ],
  }
Get List all hentai
import { list } from "nekopoi-scraper";

const type = "jav"; // available "jav", "hentai"
const page = 1; // optional
list(type, page).then(async (data) => {
  console.log(data);
});
  • Output
  [
    {
      "id": Number,
      "date": String,
      "title": String,
      "image": String,
      "type":String,
    }
    ...
  ]

TODO

  • Make code more readable
  • Etc.

Contact

David - @david.stefen

(back to top)

Keywords

FAQs

Package last updated on 20 Dec 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc