赞
踩
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博客】
赞
踩
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。