← 返回 Skills 市场
iamhankai

北京住宅全信息助手 (房价/学区/交通)

作者 Kai Han · GitHub ↗ · v1.0.8
cross-platform ✓ 安全检测通过
475
总下载
0
收藏
1
当前安装
9
版本数
在 OpenClaw 中安装
/install beijing-house-pro
功能描述
查询北京住宅小区的基础信息(房价/区域/交通),并通过官方验证渠道核实学区划片信息。
使用说明 (SKILL.md)

\r \r

北京住宅全信息助手 (房价/学区/交通)\r

\r

🛠 环境要求与安装\r

\r 本技能涉及网页抓取与浏览器自动化。使用前请确保安装以下依赖:\r \r

1. Python 依赖\r

pip install requests beautifulsoup4 selenium\r
```\r
\r
### 2. 系统环境 (关键)\r
- **Chrome 浏览器**:需安装 Chrome 或 Chromium。\r
- **ChromeDriver**:需下载与浏览器版本匹配的 ChromeDriver,并确保其在系统的 PATH 路径中。\r
- **网络权限**:需能够访问 `bj.ke.com` (房价) 以及北京各区教委官网。\r
\r
---\r
\r
## 📖 核心指令与策略\r
\r
### 1. 基础信息查询 (价格、年份、交通)\r
- **执行指令**:`python scripts/query_info.py --name "\x3C小区名>"`。\r
- **兜底策略**:若脚本因反爬限制失败,**允许**使用 `web_search` 搜索类似 `"北京 [小区名] 均价 建成年份"`。\r
\r
### 2. 官方学区划片 (严格多步策略)\r
**严禁直接引用搜索引擎中的非官方学区汇总信息。必须通过以下闭环逻辑验证:**\r
\r
#### A. 海淀区 (17学区制)\r
海淀区划片复杂,本技能采用“搜索定位 + 官方名录核实”的双保险模式:\r
1. **第一步**:运行 `python scripts/query_school_browser.py --district "海淀" --name "\x3C小区名>"`。\r
2. **第二步**:由于不再硬编码小区对应关系,脚本会返回 17 个官方学区名单并提示 `info_required`。\r
3. **第三步**:Agent 必须使用 `web_search` 搜索:`"海淀区 [小区名] 属于哪个学区"`(例如:上地学区、中关村学区)。\r
4. **第四步**:确定学区名后,再次运行脚本,`--name` 参数传入确定的**学区名称**(如 `上地学区`),即可获得该学区官方管辖的全部公办中小学名单。\r
\r
#### B. 朝阳区\r
- **执行指令**:`python scripts/query_school_browser.py --district "朝阳" --name "\x3C小区名>"`。\r
- **逻辑**:后端会自动运行无头浏览器访问朝阳教委官网实时抓取。\r
\r
#### C. 东城/西城/其他区\r
- 脚本会返回官方查询入口 URL。Agent 需调用 `browser` 系统工具引导用户手动完成登录/扫码验证。\r
\r
---\r
\r
## ⚠️ 安全与数据时效性\r
\r
1. **拒绝猜测**:严禁在未得到官方系统或学区名录确认的情况下向用户回复学区信息。\r
2. **人工介入**:对于需要个人登录的区域,Agent 必须提示用户手动操作,不得尝试自动化登录。\r
3. **政策变动**:所有返回结果必须附带声明:“信息来源于 2025 年官方公开资料,具体划片以当年度教委发布的最新《招生简章》为准。”\r
\r
---\r
\r
## 注意事项\r
- 仅支持北京地区。\r
- 严禁删除 `haidian_districts.json` 文件。\r
安全使用建议
This skill appears coherent and implements what it promises, but take these practical precautions before installing or running it: - Review the code yourself (or have someone you trust) since it will run a headless browser and make network requests to official sites. - Install Chrome/Chromium and download ChromeDriver only from the official project page (mismatched or malicious drivers are a real risk). - Expect the scripts to trigger anti-bot measures (CAPTCHAs) on some sites; the skill already falls back to web_search in that case. - The haidian_districts.json is a static 2025 snapshot from a secondary source (bj.bendibao.com); verify currency against official education bureau publications before relying on it for decisions. - The skill does not request credentials, and SKILL.md forbids automated logins — follow that: perform any required login/scanning steps manually in the browser. - If you permit autonomous agent invocation, be aware the agent could run the scripts and perform outbound web requests automatically; if you prefer to review outputs before network actions, restrict invocation to manual use only.
功能分析
Type: OpenClaw Skill Name: beijing-house-pro Version: 1.0.8 The skill bundle is designed to query Beijing housing and school district information using web scraping and browser automation. The Python scripts (query_info.py and query_school_browser.py) use standard libraries like requests and selenium to access public real estate data and official government education portals. The instructions in SKILL.md are well-structured, emphasizing data accuracy and explicitly directing the agent to involve the user for any actions requiring authentication, which mitigates risks of unauthorized access. No indicators of data exfiltration, malicious execution, or harmful prompt injection were identified.
能力评估
Purpose & Capability
The name/description (Beijing community price/region/transport and official school-district verification) match the included scripts: query_info.py scrapes Beike for prices/metadata; query_school_browser.py automates district official sites (Chaoyang) or returns Haidian's bundled district list. No unrelated services, env vars, or binaries are requested.
Instruction Scope
SKILL.md explicitly instructs running the provided scripts, using web_search as a fallback, and guiding users to manual browser verification where personal login is required. The instructions do not ask the agent to read unrelated files or secret environment variables. They expressly prohibit automated personal-login attempts.
Install Mechanism
This is instruction-only (no packaged install). Python dependencies are standard (requests, beautifulsoup4, selenium). However, the skill requires a system Chrome/Chromium and a matching ChromeDriver placed on PATH; obtaining ChromeDriver is a manual step and users should download it from the official source to avoid pulling arbitrary binaries.
Credentials
The skill declares no required environment variables or credentials and the code does not access secrets or unrelated config. It reads a local JSON (haidian_districts.json) and makes outbound HTTP(S) requests to public education and real-estate sites only.
Persistence & Privilege
Flags show no forced or always-on behavior. The skill does not modify other skills or system-wide settings and does not request persistent elevated privileges.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install beijing-house-pro
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /beijing-house-pro 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.8
v1.0.8: 修复了表头'学校名称'被误解析为一个虚假的'学校'条目的问题,清理了14条脏数据。
v1.0.7
v1.0.7: 从北京本地宝 (bendibao.com) 完整爬取海淀17学区全部学校名录,替换旧数据,确保100%准确。含164所小学+122所中学。
v1.0.6
v1.0.6: 结构优化。合并了冗余的查询脚本,将所有区县的官方查询入口统一整合至 query_school_browser.py 中,使技能结构更加简洁。
v1.0.5
v1.0.5: 重大安全重构。废除海淀区所有模糊的小区映射规则,采用‘搜索定位+官方对照表’的双重验证流,确保 100% 准确性。
v1.0.4
v1.0.4: 重大重构。彻底删除海淀区所有不靠谱的硬编码小区映射,改为‘搜索确认学区+脚本查询对口学校’的双重验证机制,杜绝幻觉和误报。
v1.0.3
v1.0.3: 修复上地东里等小区学区归属错误;在文档中极大强化了海淀区脚本查询的强制性要求。
v1.0.2
v1.0.2: 修复 SKILL.md 文档内容同步问题,完整包含环境依赖与安全策略。
v1.0.1
v1.0.1: 完善环境依赖说明 (Selenium/Chrome);明确 web_search 使用规范;增加安全与数据时效性提示。
v1.0.0
v1.0.0 核心功能:全北京小区基础信息查询 + 官方学区自动化验证 + 交通距离精准计算
元数据
Slug beijing-house-pro
版本 1.0.8
许可证
累计安装 1
当前安装数 1
历史版本数 9
常见问题

北京住宅全信息助手 (房价/学区/交通) 是什么?

查询北京住宅小区的基础信息(房价/区域/交通),并通过官方验证渠道核实学区划片信息。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 475 次。

如何安装 北京住宅全信息助手 (房价/学区/交通)?

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

北京住宅全信息助手 (房价/学区/交通) 是免费的吗?

是的,北京住宅全信息助手 (房价/学区/交通) 完全免费(开源免费),可自由下载、安装和使用。

北京住宅全信息助手 (房价/学区/交通) 支持哪些平台?

北京住宅全信息助手 (房价/学区/交通) 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 北京住宅全信息助手 (房价/学区/交通)?

由 Kai Han(@iamhankai)开发并维护,当前版本 v1.0.8。

💬 留言讨论