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

v1.0.8

查询北京住宅小区的基础信息(房价/区域/交通),并通过官方验证渠道核实学区划片信息。

0· 422·1 current·1 all-time
byKai Han@iamhankai

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for iamhankai/beijing-house-pro.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "北京住宅全信息助手 (房价/学区/交通)" (iamhankai/beijing-house-pro) from ClawHub.
Skill page: https://clawhub.ai/iamhankai/beijing-house-pro
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Canonical install target

openclaw skills install iamhankai/beijing-house-pro

ClawHub CLI

Package manager switcher

npx clawhub@latest install beijing-house-pro
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
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.
Assessment
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.

Like a lobster shell, security has layers — review code before you run it.

latestvk9757pdbep61sn019541ejhds582a3js
422downloads
0stars
9versions
Updated 1mo ago
v1.0.8
MIT-0

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

🛠 环境要求与安装

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

1. Python 依赖

pip install requests beautifulsoup4 selenium

2. 系统环境 (关键)

  • Chrome 浏览器:需安装 Chrome 或 Chromium。
  • ChromeDriver:需下载与浏览器版本匹配的 ChromeDriver,并确保其在系统的 PATH 路径中。
  • 网络权限:需能够访问 bj.ke.com (房价) 以及北京各区教委官网。

📖 核心指令与策略

1. 基础信息查询 (价格、年份、交通)

  • 执行指令python scripts/query_info.py --name "<小区名>"
  • 兜底策略:若脚本因反爬限制失败,允许使用 web_search 搜索类似 "北京 [小区名] 均价 建成年份"

2. 官方学区划片 (严格多步策略)

严禁直接引用搜索引擎中的非官方学区汇总信息。必须通过以下闭环逻辑验证:

A. 海淀区 (17学区制)

海淀区划片复杂,本技能采用“搜索定位 + 官方名录核实”的双保险模式:

  1. 第一步:运行 python scripts/query_school_browser.py --district "海淀" --name "<小区名>"
  2. 第二步:由于不再硬编码小区对应关系,脚本会返回 17 个官方学区名单并提示 info_required
  3. 第三步:Agent 必须使用 web_search 搜索:"海淀区 [小区名] 属于哪个学区"(例如:上地学区、中关村学区)。
  4. 第四步:确定学区名后,再次运行脚本,--name 参数传入确定的学区名称(如 上地学区),即可获得该学区官方管辖的全部公办中小学名单。

B. 朝阳区

  • 执行指令python scripts/query_school_browser.py --district "朝阳" --name "<小区名>"
  • 逻辑:后端会自动运行无头浏览器访问朝阳教委官网实时抓取。

C. 东城/西城/其他区

  • 脚本会返回官方查询入口 URL。Agent 需调用 browser 系统工具引导用户手动完成登录/扫码验证。

⚠️ 安全与数据时效性

  1. 拒绝猜测:严禁在未得到官方系统或学区名录确认的情况下向用户回复学区信息。
  2. 人工介入:对于需要个人登录的区域,Agent 必须提示用户手动操作,不得尝试自动化登录。
  3. 政策变动:所有返回结果必须附带声明:“信息来源于 2025 年官方公开资料,具体划片以当年度教委发布的最新《招生简章》为准。”

注意事项

  • 仅支持北京地区。
  • 严禁删除 haidian_districts.json 文件。

Comments

Loading comments...