跳到正文
Skillpedia
网页抓取6.3k · #14248

airbnb-search-listing

它能做什么

它介绍如何读取 Airbnb 搜索页面上显示的房源,以及如何翻页。适用于比较选择的旅行者和研究短租市场的分析人员。

适用场景

  • ✓当有人想获取某个目的地的 Airbnb 住宿列表,包括价格和评分时。
  • ✓当分析人员想获取某个城市的房源结果,以研究租赁市场时。
  • ✓当用户需要 Airbnb 搜索结果的下一页时。

技能链接

https://github.com/browser-act/skills/blob/main/solutions/ecommerce/airbnb-search-listing/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/browser-act/skills/blob/main/solutions/ecommerce/airbnb-search-listing/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请找出搜索页面上显示的里斯本 Airbnb 住宿,包括价格和评分。”

每周 5 个新技能,1 分钟读完。

工作原理

该技能在浏览器中打开搜索页面,读取嵌入其中的结果,并列出每个房源的 ID、名称、位置、评分、价格和标识。它还会返回下一页的游标。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Airbnb — Search Listing Extraction

Navigate to Airbnb search URL → extract listing results from SSR-embedded data

Language

All process output to user (progress updates, process notifications) follows the user's language.

Objective

Extract accommodation listing results from an Airbnb search page using SSR-embedded niobeClientData JSON.

Prerequisites

  • Target search page is already open in the browser: https://www.airbnb.com/s/{destination}/homes
  • No login required — search results are publicly accessible

Pre-execution Checks

1. Tool Readiness

If browser-act has been confirmed available in the current session → skip this step.

Invoke browser-act via Skill tool to load usage. If installation or configuration issues arise, follow its guidance to resolve then retry.

Capability Components

This Skill's operational boundary = what the user can manually do in their browser. It only reads data already displayed to the user on the page, never bypassing authentication or access controls. JS code is encapsulated in Python files under the scripts/ directory, invoked via eval "$(python scripts/xxx.py {params})". $(...) is bash syntax; it is recommended to use the bash tool for execution.

DOM: extract search results (SSR niobeClientData)

Navigate to the search URL first, wait for the page to load, then run:

eval "$(python scripts/search-listing.py)"

URL construction pattern:

https://www.airbnb.com/s/{destination}/homes?checkin={YYYY-MM-DD}&checkout={YYYY-MM-DD}&adults={N}&children={N}&infants={N}&pets={N}&price_min={N}&price_max={N}&min_beds={N}&min_bedrooms={N}&min_bathrooms={N}&cursor={base64_cursor}

All URL parameters are optional except destination. Omit any parameter to use the Airbnb default.

Full invocation sequence:

  1. navigate https://www.airbnb.com/s/{destination}/homes?{params}
  2. wait stable
  3. eval "$(python scripts/search-listing.py)"

Output example:

{
  "items": [
    {
      "id": "5476930",
      "url": "https://www.airbnb.com/rooms/5476930",
      "name": "Bright Studio in Notting Hill",
      "lat": 51.5101,
      "lng": -0.1949,
      "rating": "4.85",
      "title": "Entire studio in London",
      "price_total": "$120 total",
      "price_qualifier": "before taxes",
      "photos": ["https://a0.muscache.com/im/pictures/...jpeg"],
      "badges": ["Guest favorite"]
    }
  ],
  "count": 18,
  "total_pages": 13,
  "cursors": ["eyJzZWN0aW9uX29mZnNldCI6MCwiaXRlbXNfb2Zmc2V0IjoxOCwidmVyc2lvbiI6MX0="]
}

Error handling: If error: true is returned, verify the current page is an Airbnb search results page (URL contains /s/ and /homes), then retry once after wait stable. If niobeClientData is not found, the page may still be loading — wait and retry.

Pagination

URL Pagination: URL pattern https://www.airbnb.com/s/{destination}/homes?{filters}&cursor={cursor}. Each page returns a cursors array where cursors[0] is the current page, cursors[1] is page 2, cursors[2] is page 3, etc. total_pages equals the length of cursors. Termination: index >= total_pages OR count is 0.

Paginate by taking the cursor from the previous result and navigating:

  1. First page: navigate without cursor; extract cursors array from result
  2. Page 2: navigate https://www.airbnb.com/s/{destination}/homes?{filters}&cursor={cursors[1]}
  3. wait stable
  4. eval "$(python scripts/search-listing.py)"
  5. Page N: use cursors[N-1] from the original page-1 cursors array
  6. Stop when page index >= total_pages or count is 0

Success Criteria

count >= 1 AND items[0].id is not null AND items[0].url is not null

Known Limitations

  • Returns up to 18 listings per page (Airbnb's default page size)
  • Maximum ~240 results total across all pages (Airbnb's search cap)
  • rating may be null for new listings with no reviews
  • price_total is null when no dates are specified in search

Execution Efficiency

  • Batch orchestration: Write a bash script to loop through cursors serially; do not parallelize within one browser session
  • Test before batch execution: After writing a batch script, test with 1-2 pages before running full pagination
  • Error resumption: Save results page by page; resume from the last successful page on failure

Experience Notes

Path: {working-directory}/browser-act-skill-forge-memories/airbnb-scraper-airbnb-search-listing.memory.md

Before execution: If the file exists, read it first — i

常见问题

它需要登录吗?

不需要。该技能说明,搜索结果可以公开访问。

它能获取多于一页的结果吗?

可以。它会返回分页信息,以便请求下一页。

每个结果包含什么?

每个结果包含房源 ID、URL、名称、坐标、评分、价格、照片和标识。

详情

作者的原始描述

Extracts Airbnb accommodation search results from a destination query via SSR-embedded data, returning listing ID, URL, name, coordinates, rating, price, photos, and badge info for each result, plus pagination cursors for multi-page retrieval. Use when user mentions Airbnb search results, Airbnb listings, vacation rental search, short-term rental listings, scrape Airbnb, get Airbnb data, find rentals on Airbnb, Airbnb destination search, Airbnb property list, Airbnb stays search, Airbnb accommodation results, pull Airbnb listings, collect Airbnb search data, Airbnb scraper, Airbnb search page

repo: browser-act/skills

热度

GitHub 星标
6.3k
排名
#14248
许可证
MIT
更新时间
2026/8/24

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能