e
This commit is contained in:
parent
4f6e1caa5f
commit
00000d9c6d
16 changed files with 106 additions and 89 deletions
|
|
@ -1,6 +1,5 @@
|
|||
import re
|
||||
from functools import partial
|
||||
from pathlib import Path
|
||||
from urllib.parse import quote, urljoin
|
||||
|
||||
import httpx
|
||||
|
|
@ -10,12 +9,12 @@ from .utils import Cache, Time, get_logger, leagues, network
|
|||
|
||||
log = get_logger(__name__)
|
||||
|
||||
urls: dict[str, dict[str, str]] = {}
|
||||
urls: dict[str, dict[str, str | float]] = {}
|
||||
|
||||
CACHE_FILE = Cache("fawa.json", exp=10_800)
|
||||
|
||||
BASE_URL = "http://www.fawanews.sc/"
|
||||
|
||||
CACHE_FILE = Cache(Path(__file__).parent / "caches" / "fawa.json", exp=10_800)
|
||||
|
||||
|
||||
async def process_event(
|
||||
client: httpx.AsyncClient,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue