rates/backend/services/scraper_backends
jtricerolph 8ccc0e272d Fix max_persons extraction: read from span text not block_id segment 2
Old Stocks block_id has 0 in position 2 (not the persons count) so all
its rates were stored as max_persons=0 and deprioritised in the matrix.

Now reads max_persons from the visible 'Max persons: N' span (matching
the original scrapy spider), with aria-label/title fallback. block_id
segment 2 is unreliable across different hotel layouts.

Also treat max_persons=0 as unknown in the matrix ORDER BY priority.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-07-10 01:22:51 +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 Fix max_persons extraction: read from span text not block_id segment 2 2026-07-10 01:22:51 +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