webscrapper / scraper /config.py
AkshayStark's picture
intiail setup for scrapper
95f7828
raw
history blame contribute delete
321 Bytes
from pydantic_settings import BaseSettings
from dotenv import load_dotenv
import os
load_dotenv()
class Settings(BaseSettings):
PLAYWRIGHT_DEFAULT_TIMEOUT: int = os.getenv("PLAYWRIGHT_DEFAULT_TIMEOUT", 7_000)
PLAYWRIGHT_WAIT_SECONDS_BEFORE_CLOSE: int = 3_600 # 1 hour
settings = Settings() # type: ignore