e
This commit is contained in:
parent
5a61e2a8d5
commit
00000d9db0
11 changed files with 809 additions and 162 deletions
|
|
@ -84,8 +84,8 @@ async def get_events(client: httpx.AsyncClient) -> list[dict[str, str]]:
|
|||
return events
|
||||
|
||||
|
||||
async def main(client: httpx.AsyncClient) -> None:
|
||||
if cached := load_cache(CACHE_FILE, exp=86400, nearest_hr=True):
|
||||
async def scrape(client: httpx.AsyncClient) -> None:
|
||||
if cached := load_cache(CACHE_FILE, exp=86_400, nearest_hr=True):
|
||||
urls.update(cached)
|
||||
log.info(f"Collected {len(urls)} event(s) from cache")
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue