No description
Find a file
Edward Betts 06afd57957 Link to Eurostar search page with pricing; add Bristol departures RTT link
Replace the Eurostar timetable link with the search URL
(eurostar.com/search/uk-en?adult=1&origin=…&destination=…&outbound=…)
so the footer links directly to the page that shows prices for the
specific date and destination.

Add a Bristol Temple Meads → Paddington departures link on RTT alongside
the existing Paddington arrivals link.

Also update "morning service unavailable" badge and tests to reflect the
removal of the morning-only cutoff filter from find_unreachable_morning_eurostars.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-04 10:47:46 +01:00
scraper Link to Eurostar search page with pricing; add Bristol departures RTT link 2026-04-04 10:47:46 +01:00
templates Link to Eurostar search page with pricing; add Bristol departures RTT link 2026-04-04 10:47:46 +01:00
tests Link to Eurostar search page with pricing; add Bristol departures RTT link 2026-04-04 10:47:46 +01:00
.gitignore Initial commit. 2026-03-30 19:34:46 +01:00
app.py Link to Eurostar search page with pricing; add Bristol departures RTT link 2026-04-04 10:47:46 +01:00
cache.py Add 24-hour TTL to Eurostar price cache 2026-04-04 10:38:47 +01:00
pyproject.toml Initial commit. 2026-03-30 19:34:46 +01:00
README.md Include link to git repo. 2026-03-31 15:13:11 +01:00
requirements.txt Initial commit. 2026-03-30 19:34:46 +01:00
trip_planner.py Drop MORNING_CUTOFF_HOUR, consider all services. 2026-04-04 10:43:47 +01:00

Bristol Eurostar

Source: https://git.4angle.com/edward/bristol-eurostar

Plan a trip from Bristol Temple Meads to Europe on Eurostar.

Combines GWR trains (Bristol → Paddington) with Eurostar services (St Pancras → destination) and shows all valid same-day connections, filtering by journey time and minimum/maximum transfer window at Paddington/St Pancras.

Destinations

  • Paris Gare du Nord
  • Brussels Midi
  • Lille Europe
  • Amsterdam Centraal

How it works

Train times are fetched from two sources simultaneously:

  • GWR — scraped from Realtime Trains using httpx
  • Eurostar — scraped from the Eurostar timetable pages via the embedded __NEXT_DATA__ JSON (no browser required)

Results are cached to disk by date and destination.

Connection constraints

Minimum Paddington → St Pancras 75 min
Maximum Paddington → St Pancras 2h 20m
Maximum Bristol → Paddington 1h 50m

Setup

pip install -e ".[dev]"

Running

flask --app app run

Then open http://localhost:5000.

Tests

pytest

License

MIT