当前位置:   article > 正文

Python爬取微博(APP)榜单爬虫及数据可视化,整理出Python逆向系列学习进阶视频_微博 python

微博 python

f = open(‘1.csv’,‘w+’,encoding=‘utf-8’,newline=‘’)

writer = csv.writer(f)

writer.writerow([‘user_id’,‘user_location’,‘user_gender’,‘user_follower’,‘text’,‘created_time’,‘reposts_count’,‘comments_count’,‘attitudes_count’])

def get_info(url):

res = requests.get(url,headers=headers)

print(url)

datas = re.findall(‘“mblog”声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:【wpsshop博客】

推荐阅读
相关标签