Python爬虫爬取微信公众号推文图片(十几万张)
视频地址:bilibili:【爬虫】爬虫入门(下) 爬取公众号十几万张图片
本项目目标公众号:全球流行纹身
爬取该公众号在线查图-风格大全
推文内全部图片,保存至与爬虫程序相同路径下的图片集
文件夹
浏览器:Chrome
浏览器自动化测试驱动:ChromeDriver
编程语言:Python3.7
第三方爬虫库:Selenium
Chrome:下载地址
ChromeDriver:下载地址(淘宝镜像)
# ChromeDriver版本需与Chrome版本对应
Selenium安装:
pip install selenium
运行mainpage.py文件
可使用PyInstaller将该项目打包成exe格式
PyInstaller
安装:
pip install pyinstaller
使用:
pyinstaller -F -w mainpage.py