moodrain/pixiv-tool

simple tool for pixiv and pixiv-fanbox

dev-master 2020-12-07 11:54 UTC

This package is auto-updated.

Last update: 2022-01-07 14:33:28 UTC


README

$session = 'YourPHPSessionId';
$pixivId = 'PixivUserId';
$fanboxId = 'FanboxUserId';

$pixiv = new Pixiv;
$pixiv->socks5('127.0.0.1:2333');
$pixiv->sessionId($session);
$works = $pixiv->getWorks($pixivId);
var_dump($works);

$fanbox = new Fanbox;
$fanbox->sessionId($session);
$fanbox->socks5('127.0.0.1:2333');
$posts = $fanbox->getPosts($fanboxId);
$fanbox->downloadPosts($posts);