Add dynamic city discovery from DOM.RIA sitemap
- Implement src/discovery.py to extract city slugs from sitemap.xml.gz
- Use heuristics to filter out regions, districts, metro stations, streets
- Merge sitemap data with homepage navigation links for completeness
- Update config.py to remove hardcoded CITY_SLUGS, use FALLBACK_CITY_NAMES
- Update main.py to auto-discover cities when --city not provided
- Add --discover-cities flag to list all discovered cities and exit
- Tested with Kiev, Lviv, Odessa multi-city dry-run

Co-Authored-By: Claude <noreply@anthropic.com>
1 parent a679a81 commit f0fa97f6b45dc16b47d22ca67ecca80fee7bb12c
@Eugene Sukhodolskiy Eugene Sukhodolskiy authored 1 day ago
Showing 3 changed files
View
src/config.py
View
src/discovery.py 0 → 100644
View
src/main.py