Python爬取2345天气网中2017-2019年上海天气数据,日常练习用案例,附完整源代码及爬取数据结果
2021-10-08 13:10:23 11KB Python 网络爬虫 Python爬虫 天气爬虫
1
爬取山东各个城市的天气python源程序代码,使用最新的python运行时环境。
2021-08-31 10:51:34 217KB python 爬取天气 Scrapy
1
查询当地天气—心知天气api 需要个人自己的心知天气密钥
2021-08-12 20:04:06 3KB python 心知天气 爬虫
1
# 可以这么用 weather = Weather_2345('广州', '201811', '201901') print(weather.get_weather()) # 也可以这么用 weather = Weather_2345('下面会再次设置区域这里可以随便填', '201811', '201901') area_list = ["白云", "从化", "花都", "海珠", "黄埔", "荔湾", "南沙", "番禺", "天河", "越秀", "增城"] with open('./weather.log', 'w', encoding='utf-8') as fw: fw.write("区域,日期,最高气温,最低气温,天气,风向,风力,空气指数,空气情况,空气等级" + "\n") for area in area_list: print() weather.area = area weather_list = weather.get_weather() for lines in weather_list: fw.write(",".join(lines) + '\n')
2019-12-21 21:04:57 3KB python
1