帮朋友写的一个超简单的微博爬虫
由于之前一直用的是php,想尝试一下用py来开发
没有什么校验判断和异常捕捉,或者多线程之类的
就是一个普通的无法再普通的微博爬虫
需要输入containerid,这个id通过手机版的微博可以获得
手机版微博地址是:https://m.weibo.cn/
containerid可以在 我->微博 中获得:https://m.weibo.cn/p/index?containerid=2304131664607484_-_WEIBO_SECOND_PROFILE_MORE_WEIBO
虽然该脚本是用来获取个人微博内容,但也可以获取他人微博内容,前提是在他人的微博页面进行抓包,用他人的containerid一样可以达到同样效果