这是一个抓取P站图片的小工具,以node.js为基础。因此使用前请务必确保安装了Node.js
无可视化界面,目标通过修改配置文件来达到想要的抓取效果。(程序员向)
初步实现爬图片抓取功能,抓取到的为原图。
*gif图与漫画图在抓取对象外。
- 安装依赖
npm install
或者
yarn install
- 使用
使用方法请参照config
文件夹下user_info.js
文件。
填写好用户名、密码、关键词。并按照注释调整好searchConfig
的参数后,运行下面命令即可。 首次使用时请先手动创建picture文件夹(与index.js同一层级)
node index.js