fanbox-fetch
To fetch images from Pixiv Fanbox.
Minimum requirement
- A nodeJS version over 18 to support fetch API.
- A cookie from
fanbox.cc
to fetch restricted images.- WARNING: cookies stores your personal information and registered payment information. Providing cookies to third parties can make them use information improperly and expose your account to risk. See self-XSS for details.
Install
- Download the repo.
- Copy your cookie into
.env
file like this:USER_COOKIE=YOUR_COOKIE_AT_FANBOX
. - Press
npm install
.
Commands
npm start
npm start THE_AUTHOR
: Get all images posts form an author. For example, if typingnpm start hiten
, the script will download all scripts from hiten's images from Fanbox.npm start URL
: Download the creation by given URL. For example, typingnpm start https://miyajimareiji.fanbox.cc/posts/4889992
will get the 今週のかのかり裏話 creation from Fanbox.
npm run single
Format: npm run single THE_AUTHOR THE_POST
.
npm run json
To get files by given JSON path.
npm run check THE_AUTHOR
To check if the images fetched successfully.
npm run test
To run unit tests.