pixcnt
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

pixcnt

npm version

pixiv illustration counter

Getting Started

const pixcnt = require('pixcnt');
 
// mode is 'none', 'safe' or 'r18' (NOTE: mode 'r18' without sessionId always returns 0)
const mode = 'safe';
// [optional] session ID of pixiv 
const sessionId = 'xxxxx_xxxx...';
 
// count by keyword
const cnt = await pixcnt.countByKeyword('keyword', mode, sessionId);
// count by tag
const cnt = await pixcnt.countByTag('tag', mode, sessionId);

Testing

export PIXCNT_SESSION_ID=xxxxxxx...
node test.js

Readme

Keywords

none

Package Sidebar

Install

npm i pixcnt

Weekly Downloads

0

Version

2.0.0

License

MIT

Unpacked Size

4.44 kB

Total Files

6

Last publish

Collaborators

  • castaneai