← 返回 Skills 市场
terrycarter1985

Car Specs Crawler

作者 terrycarter1985 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ pending
37
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install car-specs-crawler
功能描述
Fetch car specifications from Chinese automotive websites (懂车帝 dongchedi.com and 汽车之家 autohome.com.cn). Use when the user needs to collect vehicle configurat...
使用说明 (SKILL.md)

Car Specs Crawler

Overview

This skill provides a Python script that crawls car specifications from major Chinese automotive websites (懂车帝, 汽车之家). It searches by car model name, extracts key parameters, and outputs them as JSON or markdown tables for use in comparison reports, PPTs, or spreadsheets.

Supported Parameters

The crawler extracts these common fields when available:

  • 价格 (Price / MSRP)
  • 能源类型 (Energy type: EV, PHEV, ICE, etc.)
  • 座位 (Seating layout)
  • 车身尺寸 (Dimensions L×W×H in mm)
  • 轴距 (Wheelbase)
  • 最高车速 (Top speed)
  • 电池容量 (Battery capacity in kWh)
  • 续航 (CLTC/NEDC/WLTP range in km)
  • 电机功率 (Motor power in kW)
  • 扭矩 (Torque in N·m)
  • 百公里加速 (0-100 km/h acceleration)
  • 充电时间 (Charging time)

Usage

Basic: Single Car

python3 scripts/fetch-car-specs.py "小米YU7 Pro"

Compare Multiple Cars

python3 scripts/fetch-car-specs.py "华为问界M7 纯电" "小米YU7 Pro" "特斯拉Model Y"

Output as JSON

python3 scripts/fetch-car-specs.py "小米YU7 Pro" --format json

Specify Source

# Only 懂车帝
python3 scripts/fetch-car-specs.py "小米YU7 Pro" --source dongchedi

# Only 汽车之家
python3 scripts/fetch-car-specs.py "小米YU7 Pro" --source autohome

Save to File

python3 scripts/fetch-car-specs.py "小米YU7 Pro" --format json --output specs.json

Integration Workflow (for PPT/Report Building)

When building a car comparison PPT or report:

  1. Run the crawler for each car model:

    python3 scripts/fetch-car-specs.py "车型A" "车型B" --format table
    
  2. Parse the markdown table output and feed it into the report/PPT builder.

  3. Cross-check with official websites if critical specs are missing — the crawler falls back between sources automatically.

Notes

  • The script uses requests + lxml (standard packages, usually pre-installed).
  • If a source site changes its HTML structure, the XPath selectors may need updating.
  • Rate limiting: the script sleeps 0.5s between requests to be polite to the target sites.
  • Some fields may be missing if the source page does not display them.

Resources

scripts/fetch-car-specs.py

The main crawler script. Run directly with car model names as arguments.

references/xpath-patterns.md (optional)

If the target sites change their HTML structure, update the XPath selectors in this reference file, then patch the script accordingly.

如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install car-specs-crawler
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /car-specs-crawler 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release: fetch car specs from dongchedi.com and autohome.com.cn
元数据
Slug car-specs-crawler
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Car Specs Crawler 是什么?

Fetch car specifications from Chinese automotive websites (懂车帝 dongchedi.com and 汽车之家 autohome.com.cn). Use when the user needs to collect vehicle configurat... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 37 次。

如何安装 Car Specs Crawler?

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

Car Specs Crawler 是免费的吗?

是的,Car Specs Crawler 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Car Specs Crawler 支持哪些平台?

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

谁开发了 Car Specs Crawler?

由 terrycarter1985(@terrycarter1985)开发并维护,当前版本 v1.0.0。

💬 留言讨论