mirror of
https://github.com/Abdess/retrobios.git
synced 2026-06-15 17:12:48 +00:00
Identical _fetch_raw() implementation (URL fetch + cache + error handling) was duplicated in 4 scrapers. Moved to BaseScraper.__init__ with url param. Each scraper now passes url to super().__init__() and inherits _fetch_raw(). Eliminates ~48 lines of duplicated code. DRY audit now clean: resolve logic in common.py, scraper CLI in base_scraper, _fetch_raw in BaseScraper. Remaining duplications are justified (different list_platforms semantics, context-specific hash computation). |
||
|---|---|---|
| .. | ||
| scraper | ||
| auto_fetch.py | ||
| common.py | ||
| cross_reference.py | ||
| dedup.py | ||
| download.py | ||
| download.sh | ||
| generate_db.py | ||
| generate_pack.py | ||
| generate_readme.py | ||
| list_platforms.py | ||
| migrate.py | ||
| validate_pr.py | ||
| verify.py | ||