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.7.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
12
increased by50%
Maintainers
1
Weekly downloads
 
Created
Source


Simple

Logo

NekoPoi Scraper API

npm NPM

CodeFactor Grade

How To Use

Basic

  1. Install Packages
    yarn add nekopoi-scraper
    
    or using test build
    yarn add github:xct007/nekopoi-scraper
    
  2. Import packages
  • CommonJS
    const { search, latest, list, detail } = require("nekopoi-scraper");
    
  • ESM
    import { search, latest, list, detail } from "nekopoi-scraper";
    

Example

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

const query = "love";
const limit = 10; // (optional) limit output. default 10

search(query, limit).then((data) => {
  console.log(data);
});

Output

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

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

detail(21910).then((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((data) => {
  console.log(data);
});
  • Output
  [
    {
      "id": Number,
      "date": String,
      "title": String,
      "image": String,
      "type":String,
    }
    ...
  ]
Error handling
import { search } from "nekopoi-scraper";

const data = await search("milf", 15);
if (data.error) {
  console.log(data.message);
} else {
  console.log(data)
}

Contributing

If have a suggestion that whould make this better, please fork and create a pull request. You can also simply open an issue. Don't forget to give the repo a star!

1. Fork the repo
2. Commit your Changes
3. Push to the Branch
4. Open a Pull Request

Contact

David - @david.stefen

(back to top)

Keywords

FAQs

Package last updated on 23 Feb 2023

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