2.7.1 • Published 1 year ago

nekopoi-scraper v2.7.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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

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

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

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

latest().then((data) => {
  console.log(data);
});
  • Output
[
  {
    id: Number,
    title: String,
    image: String,
    description: String,
  },
  ...
];
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
        ]
      },
      ...
    ],
  }
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,
    }
    ...
  ]
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

2.7.0

1 year ago

2.7.1

1 year ago

2.6.9

1 year ago

1.5.0

2 years ago

2.3.0

2 years ago

2.2.0

2 years ago

2.5.0

2 years ago

2.4.0

2 years ago

2.6.1

1 year ago

2.5.2

2 years ago

2.6.0

1 year ago

2.5.1

2 years ago

2.6.3

1 year ago

2.6.2

1 year ago

2.5.3

2 years ago

2.0.0

2 years ago

2.6.7-b

1 year ago

2.6.5

1 year ago

2.5.6

1 year ago

2.6.4

1 year ago

2.5.5

1 year ago

2.6.7

1 year ago

2.5.8

1 year ago

2.6.6

1 year ago

2.5.7

1 year ago

2.6.8

1 year ago

2.6.7-a

1 year ago

2.6.6-b

1 year ago

2.5.9

1 year ago

1.3.0

2 years ago

1.2.0

2 years ago