Initial commit: Rohlik.cz price scraper

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-31 12:24:25 +02:00
commit 210311a7b3
14 changed files with 697 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
"""
Rohlik.cz Price Scraper - Configuration
Version: 1.0.0
Date: 2026-05-31
Central configuration for the Rohlik.cz price scraper.
Loads environment variables from .env file for credentials and MongoDB connection.
Defines scraping parameters (scroll behavior, timeouts) and URL constants.
"""
import os
from dotenv import load_dotenv
load_dotenv()
MONGO_URI = os.getenv("MONGO_URI", "mongodb://192.168.1.76:27017")
MONGO_DB = os.getenv("MONGO_DB", "rohlik")
ROHLIK_EMAIL = os.getenv("ROHLIK_EMAIL", "")
ROHLIK_PASSWORD = os.getenv("ROHLIK_PASSWORD", "")
BASE_URL = "https://www.rohlik.cz"
AUTH_STATE_PATH = "auth_state.json"
SCROLL_PAUSE = 1.5
MAX_SCROLLS = 50