会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
55卢思凯
博客园
首页
新随笔
联系
订阅
管理
2017年10月19日
数据结构化与保存
摘要: 1、结构化 单条新闻的详情字典:news 一个列表页所有单条新闻汇总列表:newsls.append(news) 所有列表页的所有新闻汇总列表:newstotal.extend(newsls) 2、转换成pandas的数据结构DataFrame 3、从DataFrame保存到excel 4、从DataFrame保存到sqlite3数据库 import requests from bs...
阅读全文
posted @ 2017-10-19 11:26 55卢思凯
阅读(112)
评论(0)
推荐(0)
编辑