rates/backend/services/scraper_backends
jtricerolph f2e11bf585 Use qty dropdown for availability count, not just scarcity text
The 'We have X left' scarcity indicator only appears when availability is
low (typically ≤5). The quantity <select> dropdown in the booking form
always shows 0..N where N = actual available qty (capped at 10).

Extract max option value from the <select> in the last table cell per rate
plan row, falling back to regex parsing of the cell text if the select
isn't rendered, then to the scarcity text as a last resort.

Stored in both rooms_left and available_qty on RateData.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-07-09 23:20:15 +00:00
..
__init__.py Add hotel-page scraper backend with full room/rate plan extraction 2026-07-09 23:08:03 +00:00
base.py Add hotel-page scraper backend with full room/rate plan extraction 2026-07-09 23:08:03 +00:00
playwright_hotel_page.py Use qty dropdown for availability count, not just scarcity text 2026-07-09 23:20:15 +00:00
playwright_local.py Fix page.content() blocking ~2 minutes after goto timeout on Cloudflare hits 2026-07-09 21:34:37 +00:00