← 返回 Skills 市场
jisuapi

House Price - 房价

作者 极速数据 · GitHub ↗ · v1.0.1 · MIT-0
cross-platform ✓ 安全检测通过
148
总下载
1
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install house-price
功能描述
按城市查二手房与新房参考均价、环比同比及近月走势(可生成列表与 SVG 折线图)。当用户说:长沙房价多少?深圳二手房均价走势?给个查房价链接,或类似城市房价问题时,使用本技能。
使用说明 (SKILL.md)

\r \r

全国查房价(house-price)\r

\r 数据来源为 查房价(fangjia.fang.com):各城市 二手房 / 新房参考均价环比与同比、走势与排行榜等。数据为平台汇总与挂牌参考,非房管局等权威发布。\r \r 本技能由极速数据提供:https://www.jisuapi.com \r 信息反馈:请发邮件至 [email protected]\r \r 单城市 URL:https://fangjia.fang.com/{slug}/(长沙示例:fangjia.fang.com/cs/)\r \r

何时使用本技能\r

\r

  • 某市房价、二手/新房均价、涨跌、走势\r
  • 需要 查房价直达链接slug 查询(全国城市 slug 见同目录 city.md,与 SKILL.md 一层)\r
  • 需在答复中 统一格式 展示房价摘要时,使用下文 固定中文输出模板\r
  • 需要 自动拉取 城市页上的新房/二手房参考均价时,运行 get.py(见下节)\r \r

资源路径(与 jisu-wechat-article 同结构)\r

\r | 文件 | 说明 |\r |------|------|\r | skills/house-price/SKILL.md | 本技能说明(Agent 主入口) |\r | skills/house-price/city.md | 城市 slug 速查表 |\r | skills/house-price/get.py | 命令行抓取并打印 |\r \r

命令行:get.py 抓取并输出\r

\r 依赖:\r \r

pip install requests beautifulsoup4\r
```\r
\r
```bash\r
python3 skills/house-price/get.py cs\r
python3 skills/house-price/get.py bj\r
python3 skills/house-price/get.py --url https://fangjia.fang.com/nanjing/\r
# 仅最近 6 个月走势;默认会多请求 2 个走势接口(二手房 + 新房)\r
python3 skills/house-price/get.py cs --trend-months 6\r
python3 skills/house-price/get.py cs --no-trend\r
# 可选:浏览器里看折线图(会写 HTML 文件)\r
python3 skills/house-price/get.py cs --chart\r
python3 skills/house-price/get.py cs --chart my_trend.html\r
# 可选:终端里一条 Unicode 示意(不写文件)\r
python3 skills/house-price/get.py cs --spark\r
# 默认会在 stdout 输出两段折线 SVG;不要 SVG 时:\r
python3 skills/house-price/get.py cs --no-svg-stdout\r
```\r
\r
输出含 **当前月均价与环比**(来自城市页 HTML)、**过去多个月的参考均价序列**,以及 **默认附带两段折线 SVG**(与 `--chart` 内同源,打在 stdout,不写文件)。走势接口默认会请求;**`--no-trend`** 时仍会为 SVG **继续请求**走势接口(仅不打印按月文本列表),除非同时 **`--no-svg-stdout`** 才完全不拉走势接口。\r
\r
**不必生成 HTML。** 只有显式加 **`--chart`** 时才会写出 **`fangjia_{slug}_trend.html`**;路径打在 **stderr**。**`--chart` 不可与 `--no-trend` 同用。**\r
\r
**`--spark`**(可选):在走势列表之后,再往 stdout 追加 **Unicode 示意条**;不可与 `--no-trend` 同用。若下游要 **严格按固定字段解析 stdout**,请加 **`--no-svg-stdout`**,且不要加 **`--spark`**。\r
\r
**`--no-svg-stdout`**:关闭默认的 stdout **SVG** 输出;与 **`--no-trend`** 同用时,不再请求走势接口(仅首页一次)。\r
\r
`get.py` 默认在按月列表(若有)之后、`极速 API 补充` 之前输出两段 `── SVG:…──` 与 `\x3Csvg>…\x3C/svg>`。下文「固定中文输出模板」描述的是 **字段语义**;机器按行解析时请使用 **`--no-svg-stdout`**。若首页价格块解析失败,退出码为 `2`。\r
\r
**注意**:仅作低频、合规使用;勿用于高并发爬取。\r
\r
## 固定中文输出模板(严格)\r
\r
向用户展示「某城市房价」摘要时,**必须**按下列字段顺序输出;**无则填 `无`**,勿增删字段名,勿改行首标签。\r
\r
```text\r
城市:{城市名}\r
统计月份或口径:{须写清「哪一年、哪一月」或页面原话;get.py 为「2026年三月」这类合并文案;无则填无}\r
二手房参考均价:{数值} 元/㎡(无则填无)\r
二手房环比上月:{【涨】或【跌】或【平】+ 页面原文,如「【跌】比上月下跌0.22%」;无则填无}\r
二手房同比去年:{同上,仅二手房;无则填无}\r
新房参考均价:{数值} 元/㎡(无则填无)\r
新房环比上月:{【涨】【跌】【平】+ 原文;无则填无}\r
二手房参考均价走势(按月,元/㎡;与站内折线图同源接口):\r
  {YYYY-MM:整数元/㎡,每月一行;无数据则该小节仅一行「无」}\r
新房参考均价走势(按月,元/㎡;与站内折线图同源接口):\r
  {同上}\r
说明:仅供参考,不作购房或投资依据。\r
```\r
\r
**规则**\r
\r
- **月份**:优先从页面均价标题读取(如「三月二手房参考均价」→ 三月),年份可与标题「走势2026」等合并为「2026年三月」;不得凭空编造月份。\r
- **涨跌**:环比、同比行须在句首用 **【涨】【跌】【平】** 标出方向(依据页面「比上月上涨/下跌」「比去年同期…」等原文判断),再跟原文或摘录,避免只看数字看不出涨跌。\r
- **月度走势(折线同源)**:与站内折线图一致,接口为 `ajaxtrenddata`(二手房)、`ajaxtrenddatanew`(新房);按 **YYYY-MM** 每月一行、整数元/㎡;无数据则该小节仅输出一行「无」。不得编造历史月份价格。**`get.py` 默认**在 stdout 输出与 `--chart` 同源的 **两段 SVG**;不要 SVG 时用 **`--no-svg-stdout`**。需要 **浏览器里整页查看** 时用 `get.py --chart`(写 HTML);**终端扫一眼** 可用 `get.py --spark`。\r
- 数字、百分比**仅来自用户粘贴的页面内容、get.py 输出或可信引用**,禁止编造。\r
- 若当前无法访问网页:仍输出 **城市、查房价链接** 与模板 **末行说明**;均价与环比等填 **无**,并提示用户自行打开链接查看。\r
- 多条城市:重复整块模板,**城市与城市之间空一行**。\r
\r
## URL 规则(全国)\r
\r
- 形态:`https://fangjia.fang.com/{slug}/`\r
- `{slug}` 通常与 `https://{slug}.fang.com/` 主站一致。\r
- **完整 slug 表**:请读同目录 **`city.md`**。\r
\r
## 页面上常见信息类型\r
\r
| 类型 | 说明 |\r
|------|------|\r
| 二手房参考均价 | 平台根据挂牌等估算,页内一般有数据说明 |\r
| 新房参考均价 | 多为市场信息汇总,仅供参考 |\r
| 环比 / 同比 | 相对上月、去年同期 |\r
| 走势 / 排行榜 | 曲线、区县榜、小区涨跌榜、热搜小区等 |\r
\r
## 合规与抓取\r
\r
- 遵守站点服务声明与 robots;**不提供**高频抓取、绕过风控的做法。\r
- **优先**用户浏览器打开查房价链接;需要自动化时可使用本技能 **`get.py`**,仍须控制频率。\r
- 不冒充政府备案价、不伪造成交价。\r
\r
## 相关链接\r
\r
- 查房价首页:\x3Chttps://fangjia.fang.com/>\r
- 极速数据:\x3Chttps://www.jisuapi.com/>\r
安全使用建议
This skill appears to do exactly what it says: scrape fangjia.fang.com for city price summaries and optional SVG/HTML charts. Before installing/running: (1) review get.py (it will perform outbound HTTPS requests to fangjia.fang.com and its ajax endpoints); (2) run pip installs in a virtualenv; (3) obey site terms and avoid high-frequency automated scraping; (4) if you plan to parse output programmatically, use --no-svg-stdout to avoid inline SVG; and (5) if you want to limit network exposure, run the script in a sandbox or environment where outbound network access is controlled. No credentials are required.
功能分析
Type: OpenClaw Skill Name: house-price Version: 1.0.1 The house-price skill bundle is a legitimate tool for scraping and displaying real estate data from fangjia.fang.com. The Python script (get.py) uses standard libraries like requests and BeautifulSoup to fetch house prices and trend data, and it includes functionality to generate SVG charts. While it uses ast.literal_eval to parse data from the target site's internal API, this is a common practice for handling JSON-like strings in scraping and does not pose a significant risk in this context. No evidence of data exfiltration, malicious instructions, or unauthorized system access was found.
能力评估
Purpose & Capability
Name/description (查房价) match the code and instructions: get.py scrapes fangjia.fang.com for second-hand/new-house averages and trends. Required binary is only python3 and no unrelated credentials, binaries, or config paths are requested.
Instruction Scope
SKILL.md limits actions to fetching the city page and the site's trend ajax endpoints, formatting a fixed Chinese template, and optionally writing an HTML chart. The runtime steps are explicit (run get.py, pip install requests beautifulsoup4). The skill does make outbound HTTP(S) calls to fangjia.fang.com and its trend endpoints but does not attempt to read unrelated local files or exfiltrate data to third-party endpoints.
Install Mechanism
No install spec; this is instruction + included Python script. Dependencies are standard PyPI libs (requests, beautifulsoup4) installed by the user. No remote archive downloads or obscure installers are used.
Credentials
The skill requests no environment variables or credentials. The code does not reference or require secrets; network requests are only to fangjia.fang.com (and its internal ajax trend endpoints) which is proportional to the purpose.
Persistence & Privilege
always is false and the skill does not modify system or other-skill configuration. It has no elevated persistence or privileged installation behavior.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install house-price
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /house-price 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
house-price 1.0.1 - 更新技能名称为中英文(House Price - 房价),描述更简明直接,增强针对城市房价问题的自动适配说明。 - 优化 description 字段,使其更便于被理解和检索。 - 其余内容保持不变,核心说明和输出模板无调整。
v1.0.0
house-price v1.0.0 - Initial release: Provides reference average prices for new and second-hand housing by city, as well as month-on-month and year-on-year trends. - Includes a strict Chinese output template for consistent display. - Supports data fetch via command line with get.py (requires python3, requests, beautifulsoup4). - Outputs recent monthly price trends and SVG charts; offers direct city price page links. - Includes clear usage, rules, and compliance instructions.
元数据
Slug house-price
版本 1.0.1
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 2
常见问题

House Price - 房价 是什么?

按城市查二手房与新房参考均价、环比同比及近月走势(可生成列表与 SVG 折线图)。当用户说:长沙房价多少?深圳二手房均价走势?给个查房价链接,或类似城市房价问题时,使用本技能。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 148 次。

如何安装 House Price - 房价?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install house-price」即可一键安装,无需额外配置。

House Price - 房价 是免费的吗?

是的,House Price - 房价 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

House Price - 房价 支持哪些平台?

House Price - 房价 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 House Price - 房价?

由 极速数据(@jisuapi)开发并维护,当前版本 v1.0.1。

💬 留言讨论