def cbs( specific_folder, delete_all, path, batch_size, delete_start_date, load_start_year, from_email, username, password, email_search_start_date, ): from anyway.parsers.cbs import main return main( specific_folder=specific_folder, delete_all=delete_all, path=path, batch_size=batch_size, delete_start_date=delete_start_date, load_start_year=load_start_year, from_email=from_email, username=username, password=password, email_search_start_date=email_search_start_date, )
def accidents_around_schools(start_date, end_date, distance, output_path): from anyway.accidents_around_schools import main return main(start_date=start_date, end_date=end_date, distance=distance, output_path=output_path)
def united(light, username, password, lastmail): from anyway.parsers.united import main return main(light=light, username=username, password=password, lastmail=lastmail)
def update(source, news_flash_id): from anyway.parsers.news_flash_updater import main if not source: source = None if not news_flash_id: news_flash_id = None return main(source, news_flash_id)
def update(source, news_flash_id): from anyway.parsers.news_flash_updater import main key = os.environ.get('GOOGLE_MAPS_KEY') if source == '': source = None if news_flash_id == '': news_flash_id = None return main(key, source, news_flash_id)
def update(source, news_flash_id): from anyway.parsers.news_flash_updater import main key = get_google_maps_key() if not source: source = None if not news_flash_id: news_flash_id = None return main(key, source, news_flash_id)
def update(google_maps_key_path, source, news_flash_id): from anyway.parsers.news_flash_updater import main with open(google_maps_key_path) as file: key = file.read() if source == '': source = None if news_flash_id == '': news_flash_id = None return main(key, source, news_flash_id)
def infographics_data_cache(info, update): """Will refresh the infographics data cache""" from anyway.parsers.infographics_data_cache_updater import main return main(update=update, info=info)
def traffic_volume(path): from anyway.parsers.traffic_volume import main return main(path)
def registered_vehicles(specific_folder, delete_all, path): from anyway.parsers.registered import main return main(specific_folder=specific_folder, delete_all=delete_all, path=path)
def news_flash(): from anyway.parsers.scrape_flash_news import main return main()
def news_flash(google_maps_key_path): from anyway.parsers.news_flash.scrap_flash_news import main with open(google_maps_key_path) as file: key = file.read() return main(key)
def news_flash(): from anyway.parsers.news_flash.scrap_flash_news import main key = os.environ.get('GOOGLE_MAPS_KEY') return main(key)
def news_flash(): from anyway.parsers.news_flash.scrape_flash_news import main key = get_google_maps_key() return main(key)