项目主要是模拟登录微博手机网页端,爬取指定微博下面的评论数据,并且下载评论中的表情包图片 主要的文件为:
- photo_crawler.py:代码(带说明和注释)
- cookie.txt:爬取电脑端网页时的cookie,具有时效性,需要自行更新
- python3.6
- requests
注:具体分析说明可以关注微信公众号:Alfred数据室,阅读对应文章《开年表情包局部富有指南,盘它!》
This project Crawls Weibo comment data and downloads memes and stickers from the comment by logining Weibo with Python requests. The main files are listed below:
- photo_crawler.py:codes(with annotation)
- cookie.txt:cookie needed for crawling webpage, you should update it by yourself caused it's time-sensitive.
- Python3.6
- requests
Notice: you can find the detailed document by following Alfred's wechat official account: Alfred_Lab