360 Secure SkillHub
360 安全技能中心

Weather Fetch

该 Skill 通过 Playwright 自动化脚本从 weathercn.com 抓取指定中国城市的实时天气数据,输出含温度、天气状况、湿度、体感温度、气压、能见度、风向风力、日出日落与 AQI 等字段的 JSON。用户在命令行传入城市名即可运行,需要联网,不包含历史天气或天气预报数据。

wndagg
wndagg
热度 32.09
最近更新 2026-05-11 17:47:06
分类:生活依赖:代码执行 / 联网浏览搜索应用场景:旅行 / 数据处理

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add weather-fetch
Metadata
name
weather-fetch
description
中国天气数据抓取工具 - 从 weathercn.com 抓取实时天气数据,支持全国城市。
homepage
https://github.com/wNDAGG/mimi-scripts
metadata
{"openclaw":{"emoji":"🌤️","price":"¥0(免费)/ 打赏支持"}}

🌤️ Weather Fetch - 中国天气抓取工具

从 weathercn.com 抓取中国城市实时天气数据。

功能

  • 支持全国城市天气查询
  • 提取温度、湿度、气压、能见度等数据
  • 日出日落时间
  • AQI空气质量指数
  • 使用 Playwright 自动化抓取

使用方法

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