name: weather-fetch description: 中国天气数据抓取工具 - 从 weathercn.com 抓取实时天气数据,支持全国城市。 homepage: https://github.com/wNDAGG/mimi-scripts metadata: openclaw: emoji: 🌤️ price: "¥0(免费)/ 打赏支持"
从 weathercn.com 抓取中国城市实时天气数据。
python3 scripts/weather_fetch.py 城市名
python3 scripts/weather_fetch.py 苍南
python3 scripts/weather_fetch.py 梧州
{
"city": "苍南县",
"temp": "20",
"temp_high": "26",
"temp_low": "18",
"weather": "阴",
"humidity": "66",
"feels_like": "19",
"pressure": "1011",
"visibility": "22.0",
"wind": "西南风3级",
"sunrise": "05:19",
"sunset": "18:32",
"aqi": "41",
"aqi_level": "优"
}
如果觉得好用,欢迎支持米米的服务器费用!
GitHub: https://github.com/wNDAGG/mimi-scripts
这个天气工具功能基本可用,能查询温度、湿度、AQI等数据并清晰展示。但严重不足是只支持苍南和梧州两个城市,想查其他城市暂时用不了。技术上需要安装额外的浏览器工具,首次使用较麻烦,而且数据来自商业网站,一旦对方改版功能可能就失效了。整体质量处于基础水平,实用性受限,适合尝鲜但不宜作为长期稳定工具使用。