一个Pixiv小爬虫,目前只可以爬每日, 支持长时间爬取 跳过已经爬过的
Go to file
nyaasuki c4c8c0d5fb up to data 2020-12-15 06:03:17 +08:00
.gitignore up to data 2020-12-15 06:03:17 +08:00
LICENSE 添加 LICENSE 2019-09-16 16:44:23 +00:00
Pixiv.py 完善异常捕获,现在它遇到任何情况都能正常运行且正确去重 2019-09-18 23:31:16 +08:00
README.md Update README.md 2020-12-14 16:38:41 +08:00
requirements.txt up to data 2020-12-15 06:02:56 +08:00

README.md

一个Pixiv小爬虫目前只可以爬每日 支持长时间爬取 跳过已经爬过的

环境需求

Python:3.6+ / Redis

食用方法

Linux/OSX:

git clone https://github.com/nyaasuki/PixivSpider.git && cd ./PixivSpider
python3 Pixiv.py

Windows:

  1. 下载/clone这个项目

  2. 配置好环境python、Redis

  3. 打开你的CMD窗口

  4. 输入python+ ←这是一个空格

  5. 用鼠标把Pixiv.py这个文件拖到cmd窗口

    ^_^

注意事项

1.requests安装错误

ERROR: Could not find a version that satisfies the requirement resquests ERROR: No matching distribution found for resquests

解决方案手动安装requests

'pip install -i https://pypi.tuna.tsinghua.edu.cn/simple requests'

2.请输入一个cookie

目前此项留空直接回车也可以正常爬取,如果后续添加新功能可以能需要

此项储存在本地redis中

特别提醒

正常来说,当没有出现上方问题时,程序出现问题大多为你的上网方式不够科学 缓慢更新中...