🏠
简介
基于 Idealista CLI 的房产搜索技能,支持西班牙/葡萄牙房源查询与详情获取,为开发者提供标准化的房产数据 CLI 操作指南。
原始描述
Use the idealista CLI to search Idealista listings by location (city, town, area, street) and fetch listing details. Apply when a user asks for Idealista marketplace data or needs CLI commands/flags for idealista-cli.
中文使用说明 来自收录源
核心用法
idealista-cli 是一个纯文档型 Skill,用于指导用户通过命令行与 Idealista(西班牙最大房产交易平台)交互。它不提供可执行代码,而是输出标准化的 CLI 命令语法,帮助用户完成以下操作:
- 地点建议查询:通过
idealista locations获取城市/街区/街道的 locationId - 房源搜索:通过
idealista search按价格、面积、卧室数等条件筛选房源 - 详情获取:通过
idealista listing <adId>获取单套房源完整信息 - JSON 输出:所有命令支持
--json参数,便于脚本自动化处理
显著优点
- 零代码风险:纯 Markdown 文档,无可执行代码,无动态行为
- 平台权威:对接 Idealista 官方 API(app.idealista.com),数据真实可靠
- 高度灵活:支持买卖/租赁/转让多种操作类型,覆盖住宅、办公室、车位、土地
- 脚本友好:JSON 输出模式便于与 CI/CD、数据分析流程集成
- 配置安全:敏感信息(API Key、OAuth Secret 等)仅通过环境变量注入,无硬编码
潜在局限
- 外部依赖:需独立安装 Node.js 18+ 的 idealista-cli 工具,Skill 本身不打包运行时
- T3 来源:由个人开发者(pjtf93)维护,非企业级 SLA 保障
- 地域限制:Idealista 主要覆盖西班牙、葡萄牙、意大利市场,非全球房产数据
- API 配额:受限于 Idealista 官方 API 限流策略,高频查询可能触发限制
适合人群
- 需要在脚本中批量获取西班牙/葡萄牙房产数据的开发者
- 房产投资分析师,希望自动化追踪特定区域房源变化
- 租房/购房者,偏好命令行交互的技术用户
常规风险
- API 密钥泄露:若环境变量配置不当(如提交到 Git),可能导致密钥泄露
- 网络中间人:虽使用 TLS 1.2+,但仍建议在可信网络环境使用
- 数据时效性:依赖 Idealista 平台数据更新频率,可能存在延迟
- 合规边界:抓取数据需遵守 Idealista 服务条款,商业用途需确认授权范围
技能正文
name: idealista-cli description: Use the idealista CLI to search Idealista listings by location (city, town, area, street) and fetch listing details. Apply when a user asks for Idealista marketplace data or needs CLI commands/flags for idealista-cli. compatibility: Requires idealista-cli installed (Node.js 18+), network access to app.idealista.com. license: MIT metadata: author: pjtf93 version: "0.1.0"
Purpose
Search Idealista listings and fetch listing details.
When to use
- User wants Idealista searches by city/town/area/street.
- User needs listing detail by ad ID.
- User wants JSON output for scripting.
Commands
Location suggestions
idealista locations "<query>" --operation <sale|rent|transfer> --property-type <homes|rooms|offices|garages|land>
Search listings
idealista search "<query>" --operation <sale|rent|transfer> --property-type <homes|rooms|offices|garages|land>
Optional filters:
--page <n>--limit <n>--min-price <amount>/--max-price <amount>--min-size <sqm>/--max-size <sqm>--bedrooms <count>--order <field>/--sort <order>--location-id <id>to skip lookup
Listing detail
idealista listing <adId>
JSON output
Add --json to any command:
idealista search "madrid" --json
idealista listing 123456789 --json
Configuration
Defaults are prefilled from APK, override via env vars if needed:
IDEALISTA_API_KEYIDEALISTA_SIGNATURE_SECRETIDEALISTA_OAUTH_CONSUMER_KEYIDEALISTA_OAUTH_CONSUMER_SECRETIDEALISTA_DEVICE_IDIDEALISTA_APP_VERSIONIDEALISTA_BASE_URLIDEALISTA_USER_AGENTIDEALISTA_DNT
Output expectations
- Locations: table or JSON with
locationId, name, type. - Search: table or JSON with id, price, rooms, size, address, location, url.
- Listing: table or JSON with price, rooms, size, address, url, description.
Examples
idealista locations "madrid" --operation sale --property-type homes
idealista search "madrid" --operation rent --property-type homes --limit 20
idealista listing 123456789
Error handling
- Non-zero exit code on failure.
- For scripting, use
--jsonand check exit code.
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。
其他来源收录
同一技能在不同目录的原始页面: