Skip to content

Seven data sources that keep working when they would rather not be read

Continuous price monitoring across seven sources — two APIs and five sites that actively resist automated reading — consolidated into one comparable view.

Client
A travel client
Industry
Travel
Region
International
Engagement
Project-based
Duration
Delivered
Team
1 engineer
  • Python
  • Playwright
  • Amadeus API
  • Google Sheets API
  • Docker

The problem

Prices for the same route differ across booking sites and move constantly. Comparing them by hand means checking seven places repeatedly and still missing the window.

Two of the seven offer an API. The other five do not, and are built to discourage exactly this.

The constraint that made it interesting

Anything that hammers a booking site is blocked within hours, and a blocked source is not a degraded feature — it is a silently missing input that makes every comparison wrong.

So the design problem was never extraction. It was running indefinitely without becoming unwelcome.

What we built

  • API first, always

    Where an official API exists it is used. Scraping is the fallback for sources that offer nothing, never the default approach.

  • One source per cycle, on a jittered interval

    Sources are rotated rather than polled together, with randomised gaps and automatic backoff when a site pushes back. The system is deliberately slower than it could be.

  • Interception before parsing

    Where a site loads its own data over the network, that response is read directly, with DOM parsing as the fallback — fewer assumptions about markup that changes weekly.

  • Explicit merge rules

    A result with the same booking link and price is skipped; the same link at a new price updates in place. Without this the output becomes thousands of near-duplicate rows within days.

  • Delivered where the client already works

    Results land in Google Sheets — one tab per source plus a combined view of the cheapest across all of them. No new tool for anyone to learn.

Outcomes

Measured outcomes
MeasureAfter
Sources monitored7
Sources offering an official API2 of 7
Consolidated viewTop 30 across all sources
DeploymentDockerised, runs unattended

What we would do differently

The first version polled every source on a fixed schedule and was blocked by two of them inside a day.

Rotation, jitter and backoff made each cycle slower and are the reason it still runs. On this kind of work the constraint is not how fast you can read a page once.

ExpertiseData Engineering & AnalyticsSoftware & Product Engineering

← All work

Let's Build Something Valuable

Have a project, technology challenge or engineering requirement? Let’s talk about how Hegtavic can help.