会员
新闻
博问
闪存
班级
AI培训
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
D北冥
博客园
首页
新随笔
联系
订阅
管理
2021年10月14日
数据采集第二次作业
摘要: 作业①: 要求:在中国气象网(http://www.weather.com.cn)给定城市集的7日天气预报,并保存在数据库。 步骤: 1)先爬取给定城市的7日天气预报源码 def getHtml(url): try: r = requests.get(url, timeout=25, headers
阅读全文
posted @ 2021-10-14 20:34 D北冥
阅读(66)
评论(0)
推荐(0)
编辑
公告