Files
whyrating-engine-legacy/modules/scraper_clean.py
Alejandro Gutiérrez 0778b2e07d Fix total review count detection - sum star ratings
Previous detection was matching wrong elements (partial counts).
Now sums "X stars, Y reviews" aria-labels for accurate total.

Fallback methods:
1. Sum star rating counts (most accurate)
2. Reviews tab text like "Reviews (247)"
3. Span with "X reviews" text

Tested: Soho Club 247/247 correctly detected

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-21 22:50:06 +00:00

25 KiB