← Back to Skills Marketplace
74
Downloads
0
Stars
1
Active Installs
1
Versions
Install in OpenClaw
/install amap-poi-fetch
Description
高德地图POI数据采集技能。通过关键词抓取城市的医疗美容和生活美容机构分布数据,输出JSON原始数据和Excel汇总文件。触发词:「采集XX城市医美数据」「抓取POI」「导出医美机构Excel」「XX市医美机构分布」。
README (SKILL.md)
amap-poi-fetch · 高德POI医美机构采集
快速使用
# 基本用法
python3 scripts/poi_fetch.py \x3C城市名>
# 示例:采集成都数据
python3 scripts/poi_fetch.py 成都
# 跳过Excel(只采集JSON)
python3 scripts/poi_fetch.py 上海 --skip-excel
# 指定KEY
python3 scripts/poi_fetch.py 深圳 --key \x3CYOUR_KEY>
工作流程
城市名输入
↓
获取城市区划adcode(高德行政区划API)
↓
逐区采集:
① 医疗美容 → ② 生活美容
每词翻页(每页20条,上限200条)
↓
保存JSON到 ~/.openclaw/workspace/data/\x3C城市>_poi/
↓
生成Excel(含3个Sheet:汇总 + 医疗美容明细 + 生活美容明细)
输出文件
| 文件类型 | 位置 |
|---|---|
| JSON原始数据 | ~/.openclaw/workspace/data/\x3C城市>_poi/*.json |
| Excel汇总 | ~/.openclaw/workspace/data/\x3C城市>_poi/\x3C城市>医美生活美容数据_YYYYMMDD.xlsx |
Excel结构
- 汇总:各区医疗美容/生活美容数量统计
- 医疗美容明细:机构名称、电话、地址、评分、人均、商圈、坐标
- 生活美容明细:同上字段
已知限制
| 限制 | 说明 |
|---|---|
| API硬上限 | 每词每区最多返回200条 |
| QPS限制 | 并发需间隔≥1秒 |
| KEY | 默认使用主人已申请的KEY(0c166a2bf61c1e4e6c96e3b645233e54) |
脚本参数
| 参数 | 说明 |
|---|---|
\x3C城市名> |
必填,城市/省份名称(支持"成都""成都市") |
--skip-excel |
仅采集JSON,不生成Excel |
--key \x3CKEY> |
使用指定高德KEY |
依赖
pip install openpyxl
执行路径
脚本位置:~/.openclaw/workspace/skills/amap-poi-fetch/scripts/poi_fetch.py
Usage Guidance
This skill appears to do what it says (Amap POI scraping + Excel export), but it includes a hard-coded Amap API key that will be used by default. Before installing/running: (1) consider supplying your own Amap key with --key or by setting AMAP_KEY in your environment instead of using the embedded key; (2) inspect or remove the DEFAULT_KEY from the script to avoid attributing your queries to the skill owner; (3) be aware of Amap terms of service and rate limits — heavy scraping may violate terms or exhaust quotas; (4) review where files are written (~/.openclaw/workspace/data/) and ensure you’re comfortable with local storage of scraped data; (5) if you need higher assurance, run the script in an isolated environment and/or modify it to remove the hard-coded key and to explicitly document accepted env vars.
Capability Analysis
Type: OpenClaw Skill
Name: amap-poi-fetch
Version: 1.0.0
The skill is designed to fetch POI data from the Amap (高德地图) API and export it to Excel. The primary security concern is the inclusion of a hardcoded API key (0c166a2bf61c1e4e6c96e3b645233e54) in scripts/poi_fetch.py, which is a credential exposure vulnerability. While the script's network requests to restapi.amap.com and file operations in the workspace directory are aligned with its stated purpose, the hardcoded secret is a security flaw that could lead to unauthorized use or quota exhaustion.
Capability Assessment
Purpose & Capability
Name/description, SKILL.md, and the included Python script are consistent: the script queries Amap POI and district APIs, saves JSON to ~/.openclaw/workspace/data/<city>_poi, and can export Excel. No unrelated services, binaries, or config paths are requested.
Instruction Scope
SKILL.md describes how to run the script and where outputs are stored; the runtime instructions stay within the stated scraping/export scope. Minor mismatch: the SKILL.md documents --key and a default owner KEY, while the script also respects an AMAP_KEY environment variable (SKILL.md doesn't mention AMAP_KEY).
Install Mechanism
Instruction-only skill with no install spec and a single Python script. Only runtime dependency is openpyxl (pip), which is declared. No network downloads or archive installs by the installer.
Credentials
The script embeds a hard-coded DEFAULT_KEY (0c166a2bf61c1e4e6c96e3b645233e54) that the SKILL.md calls the "owner's key" and will be used unless the user supplies --key or sets AMAP_KEY. Shipping a private API key in the code is disproportionate: it causes requests to be attributed to the owner (quota/billing/usage visibility), allows the owner to monitor usage patterns tied to this key, and could get the key rate-limited or revoked. The skill does not require any unrelated credentials, but the embedded key is a notable risk.
Persistence & Privilege
always is false and the skill does not modify other skills or system-wide settings. It only writes its own output files under the user workspace (~/.openclaw/workspace/data). No elevated persistence or privileges requested.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install amap-poi-fetch - After installation, invoke the skill by name or use
/amap-poi-fetch - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
amap-poi-fetch 1.0.0
- 首次发布:高德地图POI医美机构采集工具
- 通过关键词抓取指定城市医疗美容和生活美容机构分布,支持JSON与Excel汇出
- 提供命令行脚本,支持自定义KEY与只导出JSON选项
- Excel含3个sheet:汇总、医疗美容明细、生活美容明细
- 已知限制:API返回上限200条/区/词,QPS需≥1秒
Metadata
Frequently Asked Questions
What is Amap Poi Fetch?
高德地图POI数据采集技能。通过关键词抓取城市的医疗美容和生活美容机构分布数据,输出JSON原始数据和Excel汇总文件。触发词:「采集XX城市医美数据」「抓取POI」「导出医美机构Excel」「XX市医美机构分布」。 It is an AI Agent Skill for Claude Code / OpenClaw, with 74 downloads so far.
How do I install Amap Poi Fetch?
Run "/install amap-poi-fetch" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Amap Poi Fetch free?
Yes, Amap Poi Fetch is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Amap Poi Fetch support?
Amap Poi Fetch is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Amap Poi Fetch?
It is built and maintained by Supperwk (@supperwk); the current version is v1.0.0.
More Skills