- 气象数据获取
- 网站:https://www.windy.com/?23.118,113.254,5
- 接口:Windy: Point Forecast API - Docs
- 问题
- 接口域名被墙,使用需要通过代理才能连通
-
示例程序
``` import requests import os # https://www.windy.com/21.572/111.832?20.987,111.833,8 os.environ["http_proxy"] = "http://127.0.0.1:1088" os.environ["https_proxy"] = "http://127.0.0.1:1088" import requests import json api_url = 'https://api.windy.com/api/point-forecast/v2' data = { "lat": 20.987, "lon": 111.833, "model": "gfs", "parameters": ["wind", "dewpoint", "rh", "pressure"], "key": "你的key" } response = requests.post(api_url, json=data) print(response.text) result = response.json() ``` -
API返回数据时间间隔不定,如
`
笔记-windy气象数据获取
最新推荐文章于 2025-10-29 09:59:29 发布
文章讨论了如何通过设置代理访问被墙的Windy气象数据API,展示了一个示例程序来获取点预测数据。API返回的时间间隔不固定,每年的费用大约在7-8千人民币。同时提到,Windy的数据来源在API文档中有详细说明,而GitHub上的Windy爬虫可能已不再适用。

最低0.47元/天 解锁文章
427

被折叠的 条评论
为什么被折叠?



