Advertisement

Eight practical spider projects: Web Weather Scrape

阅读量:

爬取天气情况

      • 目标
        • 项目筹备
        • 接口解析
        • 程序编码
        • 结果展示
        • 数据保存

目标

依据天气数据接口,获取未来七天内的天气信息。

项目准备

软件:Pycharm
所依赖的第三方库包括:requests、BeautifulSoup以及csv
接口地址:http://api.k780.com:88/?app=weather.future&weaid=城市名&appkey=10003&sign=b59bc3ef6191eb9f747dd4e83c99f2a4&format=xml

接口分析

http://api.k780.com:88/?app=weather.future&weaid=上海&appkey=10003&sign=b59bc3ef6191eb9f747dd4e83c99f2a4&format=xml

打开这个网页。

全部评论 (0)

还没有任何评论哟~