🌟 一个能够轻松获取Pixiv的各个接口数据的项目
# npm
npm install
# yarn
yarn
# If you need run this project on service, you should install pm2
npm install pm2 -g
# or
yarn global add pm2
- 如果你在中国大陆境内,则需要提供科学上网工具才能成功获取到Pixiv接口数据。本项目已提供了代理接口,你之需要在
config.pixiv.ts
文件中填入相应配置即可。 - If you in Chinese, you need find some methods to avoid the GFW. This project have proviced the Proxy Intreface, you just need input your configuration in file
config.pixiv.ts
.
// config.pixiv.ts
export default {
proxy: {
/**
* defalut: {
* url: "http://127.0.0.1",
* port: 7890
* }
*/
status: true , // or false
host: 'your host', // string
port: 'your port', // number
},
}
- 如下代码是项目启动命令
- start command
# Development
yarn start
# Production
yarn service
- 获取Pixiv每日/每周/每月的插画排行榜数据。
- Get Pixiv daily/weekly/monthly illustration ranking data
- 搜索Pixiv插画
- Search Pixiv illustration
// Query
type Query = {
keyword: string // 关键词 (keywords)
}
- 获取用户/画师的基本信息
- get user infomation (such as name, twitter account and so on)
type Query = {
id: string // 用户id (user id)
}
- 获取用户/画师的插画
- get user illustration
type Query = {
id: string, // 用户id (user id)
type: 'illust' | 'manga' // 插画作品 / 漫画作品 (illustration works / comic wokrs)
}
MIT © 2022 Runtus