-
Notifications
You must be signed in to change notification settings - Fork 1
/
configs.py
28 lines (22 loc) · 875 Bytes
/
configs.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
"""
configs.py - Configuration settings for the bot.
"""
from selenium.webdriver.common.by import By
from dotenv import load_dotenv
import os
load_dotenv()
MAX_TABS = 2
MAX_TRAVERSES = 2
ADVERTISEMENT_PAUSE_TIME = 60
DRIVER_EXECUTABLE_PATH = os.environ.get('DRIVER_EXECUTABLE_PATH', "./assets/chromedriver.exe")
USER_AGENTS_FILE_PATH = os.environ.get("USER_AGENTS_FILE_PATH", "./assets/user_agents.json")
PROXIES_FILE_PATH = os.environ.get("PROXIES_FILE_PATH", "./assets/proxies.json")
PROXIES_USERNAME = os.environ.get("PROXIES_USERNAME", None)
PROXIES_PASSWORD = os.environ.get("PROXIES_PASSWORD", None)
LOADING_STRATEGY = "normal" # eager | normal
CHROME_HEADLESS = False # True | False
ADVERTISEMENT_SELECTORS = [
(By.CSS_SELECTOR, 'a[href*="adclick"]'),
(By.CSS_SELECTOR, 'a[href*="doubleclick"]'),
(By.CSS_SELECTOR, 'a[href*="googleadservice"]'),
]