booking

A scraping guide for collecting hotel and accommodation search results from Booking.com. Booking.com is a travel-reservation website, and its results are filled into the page by browser JavaScript.

In plain words
What is it for?
Use it to collect property cards and related search-result details from Booking.com. It covers browser loading, loading more results, and dismissing an occasional sign-in notice.
Why use it?
It explains how to pass Booking.com’s browser check and handle results that are not available in the first page response. It also accounts for more listings being loaded through a button and for prices requiring dates.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/agentcomputerai/torch/booking
Any agent
npx skills add AgentComputerAI/torch --skill booking
Clone the repo
git clone --depth 1 https://github.com/AgentComputerAI/torch

Made for: Claude Code, Codex.

Per session 118 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,025 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00118 $0.02025
Opus 5 $0.00059 $0.01012
Sonnet 5 $0.00024 $0.00405
Haiku 4.5 $0.00012 $0.00202

Measured yesterday against content hash ee75b936e7f8, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

booking scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

description: Proven scraping playbook for booking.com searchresults.html pages. CloudFront-fronted JS challenge blocks bare curl (HTTP 202 with a script-only interstitial), but a real Chrome session via the real Chrome d
skills/sites/booking/SKILL.md · 145 lines

How it starts

The opening of the file, as written. The whole thing — 145 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Booking.com (booking.com)

Hotel/stay search results on /searchresults.html?ss=<destination>. Real Chrome via 127.0.0.1:9222 clears the CloudFront JS challenge on first nav. Cards are in the DOM (not the initial HTML), pagination is click-to-load-more, and prices are absent unless dates are in the URL.

Detection

Signal Value
CDN CloudFront (server: CloudFront, x-amz-cf-*)
Framework Custom edge (MFE shell: web-shell-header-mfe, web-shell-footer-mfe)
Anti-bot CloudFront JS interstitial on bare curl (HTTP 202, ~8 KB, reportChallengeError(...) in script)
Auth Not required for search results
robots.txt Disallows many deep paths; /searchresults.html is allowed

Architecture

  • /searchresults.html?ss=<q> returns a tiny shell + JS that hydrates into a React-ish SPA.
  • The first paint server-renders 1 placeholder card; the rest are injected client-side.
  • Initial batch is 25 cards; more load via a "Load more results" button (batches of ~25).
  • A sign-in modal sometimes pops up — dismiss with [aria-label="Dismiss sign-in info."].
  • Each card has a stable data-testid="property-card" wrapper with sub-testids for title, title-link, distance, review-score, price-and-discounted-price, price-for-x-nights, recommended-units, address-link.

Strategy used

  • Phase 0 (curl): ❌ HTTP 202 challenge page, no data.
  • Phase 1 (framework JSON): ❌ no __NEXT_DATA__, no global payload blob worth parsing.
  • Phase 2 (browser):puppeteer.connect({ browserURL: "http://127.0.0.1:9222" }) — zero challenges, cards render immediately. No stealth plugin required.

Stealth config that works

import puppeteer from "puppeteer-core";
const browser = await puppeteer.connect({ browserURL: "http://127.0.0.1:9222" });
const page = await browser.newPage();
await page.setViewport({ width: 1440, height: 900 });
await page.goto(url, { waitUntil: "domcontentloaded", timeout: 60000 });
// IMPORTANT: disconnect, do not close

Read the full file on GitHub · 145 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 145 lines · 118 tokens per session scan A ee75b936e7f8

Subscribe to this mod's changes

booking is a skill published in the GitHub repository AgentComputerAI/torch (5 stars, last pushed 4mo ago), licensed MIT. It adds 118 tokens to every session and 2,025 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

tiny-web-crawler

Crawl from one or more starting web pages, fetch readable content, search within pages, follow relevant links, and stop when the requested information is found or a bounded limit is reached.

leon-ai/leon · 42 tokens

playwright-cli

Automates browser interactions for web testing, form filling, screenshots, and data extraction. Use when the user needs to navigate websites, interact with web pages, fill forms, take screenshots, test web applications, or extract information from web pages.

VoltAgent/voltagent · 52 tokens

browserstack

../../../engineering-team/playwright-pro/skills/browserstack/SKILL.md.

alirezarezvani/claude-skills · 0 tokens

analyze-performance-traces

Analyze Chrome, Chromium, Electron, React DevTools, or Perfetto-compatible JSON traces and audit user-reported profiling findings without loading large artifacts into context; prove trigger-to-render/layout chains, separate measured facts from source inference, find exact code choke points, classify forced layout and…

tutti-os/tutti · 127 tokens

feature-demo-recording

Record a demo video of a web feature from a real browser. Two modes -- a NARRATED film where measured voiceover drives the timeline (designed slides, subtitles, punch-in camera, rendered from an HTML timeline), and a SILENT evidence clip for a PR or a QA pass. Use when the user asks to record a video, demo, or screen…

kirodotdev/KiroCrew · 90 tokens

browser-recording

Record a browser flow as a video/GIF for evidence — animations, transitions, and multi-step interactions that a still screenshot cannot prove. Drives the project's own Playwright through a bundled runner, then converts to mp4 + GIF via ffmpeg. Use when the user asks to record a demo, capture a GIF or video of the UI…

kirodotdev/KiroCrew · 85 tokens