weiboSpider
weiboSpider copied to clipboard
文件保存问题
trafficstars
您好,我想请教一下我一次爬取多个用户信息时,怎么把这些信息写入到一个文件(如txt,csv)中而不是像之前那样每个用户一个文件
如果仅用户信息,weibo-crawler可以找到,如果包含微博,需要修改代码。
您好,我看weibo-crawler这个项目似乎在保存时也是按照昵称或者id分别建立一个文件,不是把所有的信息放在一个文件里面?需要进行什么调整呢?谢谢!
weibo-crawler的write_csv方法有file_fath变量,你可以把它改成固定值,这样csv就会写在一个文件里。
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Closing as stale, please reopen if you'd like to work on this further.