Pixiv 爬虫,可下载用户的插画,并提供简单分析功能。
- search and download user info, illust, novel,
manga - analyse illust and novel based on publication time, view count, favorites, word count.
- CLI
UI(developing)
- MySQL
sudo apt install mysql-server
mysql
init database
CREATE DATABASE pixiv;
CREATE USER 'skn_p'@'localhost' IDENTIFIED BY "skn";
GRANT ALL PRIVILEGES ON pixiv.* TO 'skn_p'@'localhost';
FLUSH PRIVILEGES;
SHOW GRANTS FOR 'skn_p'@'localhost';
poetry install
poetry run pixiv_down --help
poetry install
poetry shell
pixiv_down --help
python src/pixiv_down.py --help
usage: pixiv_down.py [-h] {config,search,download,scan,analyse,test} ...
positional arguments:
{config,search,download,scan,analyse,test}
config Configure pixiv_api
search Search for user/illust/novel
download Download for user/illust/novel
scan scan user illust/novel/manga/all work
analyse analyse data
test Test pixiv_api
options:
-h, --help show this help message and exit
- config 配置文件在
config/config.json
文件中;请将cookie
放到单独文件中, 如config/cookie
中 - search 搜索用户、插画、小说
- download 下载插画、小说
- scan 扫描用户的插画、小说,存储到数据库
- analyse 分析用户插画的发布时间、点击数、收藏数目;小说的发布时间、点击数、收藏数
usage: pixiv_down.py search [-h] [-t {illust,user,novel}] -i I
options:
-h, --help show this help message and exit
-t {illust,user,novel}, --type {illust,user,novel}
search by [illust, user, novel]
-i I url or id
usage: pixiv_down.py download [-h] [-t {all,illust,novel}] -i I
options:
-h, --help show this help message and exit
-t {all,illust,novel}, --type {all,illust,novel}
search by [illust, user, novel]
-i I url or id
usage: pixiv_down.py scan [-h] -u UID [-t {illust,novel,manga,all}]
options:
-h, --help show this help message and exit
-u UID, --uid UID uid
-t {illust,novel,manga,all}, --type {illust,novel,manga,all}
usage: pixiv_down.py analyse [-h] -u UID [-t {illust,novel,manga,all}]
options:
-h, --help show this help message and exit
-u UID, --uid UID uid
-t {illust,novel,manga,all}, --type {illust,novel,manga,all}