# crawlers 패키지 초기화 from .nrems import fetch_data as fetch_nrems from .kremc import fetch_data as fetch_kremc from .sun_wms import fetch_data as fetch_sunwms from .hyundai import fetch_data as fetch_hyundai from .cmsolar import fetch_data as fetch_cmsolar # 크롤러 타입별 매핑 CRAWLER_MAP = { 'nrems': fetch_nrems, 'kremc': fetch_kremc, 'sun_wms': fetch_sunwms, 'hyundai': fetch_hyundai, 'cmsolar': fetch_cmsolar } def get_crawler(crawler_type): """크롤러 타입에 해당하는 fetch 함수 반환""" return CRAWLER_MAP.get(crawler_type)