2.0.0 • Published 5 years ago

pixcnt v2.0.0

Weekly downloads
5
License
MIT
Repository
github
Last release
5 years ago

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