pixiv.js
pixiv API client
Support Public API.
This module is deprecated, use pixiv-app-api.
Install
$ npm install --save pixiv.js
Usage
pixiv;
If you want to downloading image, you can use with pixiv-img.
$ npm install --save pixiv-img
const Pixiv = ;const pixivImg = ; const pixiv = 'your username...' 'your password...'; pixiv ; // => downloading... 鹿島風さん by ぺこ// => finish!
See examples.
API
public api
Pixiv(username, password)
username
Required
Type: string
your pixiv username.
password
Required
Type: string
your pixiv password.
pixiv.works(illustId)
pixiv.users(userId)
pixiv.feeds([options])
pixiv.favoriteWorks([options])
pixiv.addFavoriteWorks(illustId, [options])
pixiv.removeFavoriteWorks(illustIds, [options])
pixiv.followingWorks([options])
pixiv.following([options])
pixiv.follow(userId, [options])
pixiv.unfollow(userIds, [options])
pixiv.usersWorks(userId, [options])
pixiv.usersFavoriteWorks(userid, [options])
pixiv.usersFeeds(userid, [options])
pixiv.usersFollowing(userid, [options])
pixiv.ranking(rankingType, [options])
pixiv.search(searchWord, [options])
pixiv.latestWorks([options])
userId
Type: string
, number
illustId
Type: string
, number
illustIds
Type: Array<number>
searchWord
Type: string
query word
rankingType
Type: string
Default: all
Values: all
illust
manga
ugoira
Usage
users
pixiv;
works
pixiv;
search
pixiv;
Tests
Export your pixiv username & password before running Tests.
export USERNAME=your pixiv username...
export PASSWORD=your pixiv password...
$ npm test
Related
- pixiv-app-api - save the image of pixiv
- pixiv-img - save the image of pixiv
- PixivDeck - pixiv client for Desktop like TweetDeck
License
MIT