settings.py 301 B

12345678910
  1. from pathlib import Path
  2. WORK_DIR = Path(__file__).parent.parent.absolute()
  3. OUTPUT_DIR = WORK_DIR / "output"
  4. CONFIG_DIR = WORK_DIR / "config" / "conf"
  5. GOOGLE_SEARCH_DIR = OUTPUT_DIR / "google_search"
  6. LOG_LEVEL='info'
  7. LOG_DIR = OUTPUT_DIR / "logs"
  8. DB_URL = f"sqlite:///{OUTPUT_DIR}/search_results.db"