MediaCrawler/var.py

8 lines
331 B
Python
Raw Normal View History

from asyncio.tasks import Task
2023-08-16 11:49:41 +00:00
from contextvars import ContextVar
from typing import List
2023-08-16 11:49:41 +00:00
request_keyword_var: ContextVar[str] = ContextVar("request_keyword", default="")
crawler_type_var: ContextVar[str] = ContextVar("crawler_type", default="")
comment_tasks_var: ContextVar[List[Task]] = ContextVar("comment_tasks", default=[])