Skip to content

Capture pixiv illustrations to your own database and provide api services.

Notifications You must be signed in to change notification settings

aitsuki/pixiv-captor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PixivCaptor

PixivCaptor has a chrome extension to capture pixiv illusts. See pixiv-captor-extension.

Build & Run

go build --tags json1 .
go run --tags json1 . -u username -p password

-P int Port (default 8080)
-db string Sqlite database path (default "./pixiv.db")
-log string Log file path (default "./pixiv.log")
-p string password
-u string username

API

Method URI Description Params
HEAD /pixiv/:id check illust captured -
GET /pixiv/:id get illust r18: 0 - 1, limit: 1 ~ 100
GET /pixiv search illust r18: 0 - 1, limit: 1 ~ 100, q: "string"
DELETE /pixiv/:id delete illust Basic Authorization
POST /pixiv capture illust Basic Authorization

POST - Capture

Request www.pixiv.net/ajax/illust/:id and www.pixiv.net/ajax/illust/:id/pages.

Then splicing pages body to illust body.

{
    "id": "xxxxx", <--- illust
    "...": "...", <--- illust
    "pages":[]  <--- pages
}

About

Capture pixiv illustrations to your own database and provide api services.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages