Replace monolithic scraping scripts with sportstime_parser package: - Multi-source scrapers with automatic fallback for 7 sports - Canonical ID generation for games, teams, and stadiums - Fuzzy matching with configurable thresholds for name resolution - CloudKit Web Services uploader with JWT auth, diff-based updates - Resumable uploads with checkpoint state persistence - Validation reports with manual review items and suggested matches - Comprehensive test suite (249 tests) CLI: sportstime-parser scrape|validate|upload|status|retry|clear Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
47 lines
1.0 KiB
Python
47 lines
1.0 KiB
Python
"""Scrapers for fetching sports data from various sources."""
|
|
|
|
from .base import (
|
|
BaseScraper,
|
|
RawGameData,
|
|
ScrapeResult,
|
|
ScraperError,
|
|
PartialDataError,
|
|
)
|
|
from .nba import NBAScraper, create_nba_scraper
|
|
from .mlb import MLBScraper, create_mlb_scraper
|
|
from .nfl import NFLScraper, create_nfl_scraper
|
|
from .nhl import NHLScraper, create_nhl_scraper
|
|
from .mls import MLSScraper, create_mls_scraper
|
|
from .wnba import WNBAScraper, create_wnba_scraper
|
|
from .nwsl import NWSLScraper, create_nwsl_scraper
|
|
|
|
__all__ = [
|
|
# Base
|
|
"BaseScraper",
|
|
"RawGameData",
|
|
"ScrapeResult",
|
|
"ScraperError",
|
|
"PartialDataError",
|
|
# NBA
|
|
"NBAScraper",
|
|
"create_nba_scraper",
|
|
# MLB
|
|
"MLBScraper",
|
|
"create_mlb_scraper",
|
|
# NFL
|
|
"NFLScraper",
|
|
"create_nfl_scraper",
|
|
# NHL
|
|
"NHLScraper",
|
|
"create_nhl_scraper",
|
|
# MLS
|
|
"MLSScraper",
|
|
"create_mls_scraper",
|
|
# WNBA
|
|
"WNBAScraper",
|
|
"create_wnba_scraper",
|
|
# NWSL
|
|
"NWSLScraper",
|
|
"create_nwsl_scraper",
|
|
]
|