Files
Dorod-Sky/skyvern/constants.py

20 lines
484 B
Python
Raw Normal View History

2024-06-24 23:14:45 +08:00
from enum import StrEnum
from pathlib import Path
# This is the attribute name used to tag interactable elements
SKYVERN_ID_ATTR: str = "unique_id"
SKYVERN_DIR = Path(__file__).parent
REPO_ROOT_DIR = SKYVERN_DIR.parent
INPUT_TEXT_TIMEOUT = 120000 # 2 minutes
2024-07-03 17:17:24 +08:00
PAGE_CONTENT_TIMEOUT = 300 # 5 mins
2024-06-24 23:14:45 +08:00
class ScrapeType(StrEnum):
NORMAL = "normal"
STOPLOADING = "stoploading"
RELOAD = "reload"
2024-07-02 12:33:09 +08:00
SCRAPE_TYPE_ORDER = [ScrapeType.NORMAL, ScrapeType.NORMAL, ScrapeType.RELOAD]