feat(02.1-02): integrate WNBA module with scrape_schedules.py

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Trey t
2026-01-10 00:59:53 -06:00
parent 5a51dab59f
commit f141136bb4

View File

@@ -73,30 +73,21 @@ from mls import (
scrape_mls_stadiums,
MLS_STADIUM_SOURCES,
)
from wnba import (
WNBA_TEAMS,
get_wnba_team_abbrev,
scrape_wnba_stadiums,
WNBA_STADIUM_SOURCES,
)
# =============================================================================
# NON-CORE SPORT TEAM MAPPINGS
# TODO: Extract to separate modules (wnba.py, nwsl.py, cbb.py)
# TODO: Extract to separate modules (nwsl.py, cbb.py)
# NOTE: MLS_TEAMS is now imported from mls.py
# NOTE: WNBA_TEAMS is now imported from wnba.py
# =============================================================================
WNBA_TEAMS = {
'ATL': {'name': 'Atlanta Dream', 'city': 'Atlanta', 'arena': 'Gateway Center Arena'},
'CHI': {'name': 'Chicago Sky', 'city': 'Chicago', 'arena': 'Wintrust Arena'},
'CON': {'name': 'Connecticut Sun', 'city': 'Uncasville', 'arena': 'Mohegan Sun Arena'},
'DAL': {'name': 'Dallas Wings', 'city': 'Arlington', 'arena': 'College Park Center'},
'GSV': {'name': 'Golden State Valkyries', 'city': 'San Francisco', 'arena': 'Chase Center'},
'IND': {'name': 'Indiana Fever', 'city': 'Indianapolis', 'arena': 'Gainbridge Fieldhouse'},
'LVA': {'name': 'Las Vegas Aces', 'city': 'Las Vegas', 'arena': 'Michelob Ultra Arena'},
'LA': {'name': 'Los Angeles Sparks', 'city': 'Los Angeles', 'arena': 'Crypto.com Arena'},
'MIN': {'name': 'Minnesota Lynx', 'city': 'Minneapolis', 'arena': 'Target Center'},
'NY': {'name': 'New York Liberty', 'city': 'Brooklyn', 'arena': 'Barclays Center'},
'PHO': {'name': 'Phoenix Mercury', 'city': 'Phoenix', 'arena': 'Footprint Center'},
'SEA': {'name': 'Seattle Storm', 'city': 'Seattle', 'arena': 'Climate Pledge Arena'},
'WAS': {'name': 'Washington Mystics', 'city': 'Washington', 'arena': 'Entertainment & Sports Arena'},
}
NWSL_TEAMS = {
'LA': {'name': 'Angel City FC', 'city': 'Los Angeles', 'stadium': 'BMO Stadium'},
'SJ': {'name': 'Bay FC', 'city': 'San Jose', 'stadium': 'PayPal Park'},
@@ -382,20 +373,11 @@ def scrape_cbb_cbssports(season: int) -> list[Game]:
# =============================================================================
# NON-CORE STADIUM SCRAPERS
# TODO: Extract to separate modules (wnba.py, nwsl.py, cbb.py)
# TODO: Extract to separate modules (nwsl.py, cbb.py)
# NOTE: scrape_mls_stadiums() is now imported from mls.py
# NOTE: scrape_wnba_stadiums() is now imported from wnba.py
# =============================================================================
def scrape_wnba_stadiums() -> list[Stadium]:
"""Fetch WNBA arena data (hardcoded)."""
print("\nWNBA STADIUMS")
print("-" * 40)
stadiums = []
# Would include WNBA arena data here
print(f" Found {len(stadiums)} WNBA arenas")
return stadiums
def scrape_nwsl_stadiums() -> list[Stadium]:
"""Fetch NWSL stadium data (hardcoded)."""
print("\nNWSL STADIUMS")