v2026.04.02/scripts/scraper
Abdessamad Derraz 3de4bf8190 refactor: extract _fetch_raw to BaseScraper (DRY)
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).
2026-03-18 08:22:21 +01:00
..
__init__.py v2: automated BIOS platform with full pipeline 2026-03-17 10:54:39 +01:00
base_scraper.py refactor: extract _fetch_raw to BaseScraper (DRY) 2026-03-18 08:22:21 +01:00
batocera_scraper.py refactor: extract _fetch_raw to BaseScraper (DRY) 2026-03-18 08:22:21 +01:00
coreinfo_scraper.py v2: automated BIOS platform with full pipeline 2026-03-17 10:54:39 +01:00
dat_parser.py v2: automated BIOS platform with full pipeline 2026-03-17 10:54:39 +01:00
emudeck_scraper.py refactor: extract scraper_cli() to base_scraper.py (DRY) 2026-03-18 08:17:14 +01:00
libretro_scraper.py refactor: extract _fetch_raw to BaseScraper (DRY) 2026-03-18 08:22:21 +01:00
recalbox_scraper.py refactor: extract _fetch_raw to BaseScraper (DRY) 2026-03-18 08:22:21 +01:00
retrobat_scraper.py refactor: extract _fetch_raw to BaseScraper (DRY) 2026-03-18 08:22:21 +01:00