# ============================================================ # File: scraper/services/site_resolver.py # Purpose: # Determine which BookSite implementation applies for a given URL. # This keeps INIT-flow and SCRAPE-flow site-agnostic. # ============================================================ from scraper.sites import BookSite # current PTWXZ implementation class SiteResolver: """ Resolves the correct BookSite class based on URL. Currently only PTWXZ/Piaotian is supported. """ @staticmethod def resolve(url: str): # Later: add more domain rules for other sources return BookSite()