-
Notifications
You must be signed in to change notification settings - Fork 1
/
config_server.py
35 lines (27 loc) · 1.69 KB
/
config_server.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
29
30
31
32
33
34
35
logger_append = False # set to True to append logs.log | False to overwrite
logger_console_print = False # set to True to print logs to console
logger_tail = False # set to True to tail live logs.log
env_os = 0 # 0 : "linux" or 1 : "windows"
# set to path of chromedriver.exe | leave blank to use default/auto
chromedriver_path = "/usr/local/bin/chromedriver"
chromedriver_mode = 0 # 0 : "headless" or 1 : "normal" or 2 : "maximized"
# set to number of chromedriver instances to run in parallel
chromedriver_pool_size = 2
# set to number of seconds to wait for a chromedriver instance to become available
chromedriver_timeout = 30
debug_mode = False # set to True to enable debug mode
use_reloader = True # set to True to enable auto reload on code changes
app_port = 5000 # set to port number to run server on
threaded = True # set to True to enable multi-threading
cors = True
cors_destination = "https://pro-scraper.vercel.app"
max_quick_search_results = 99 # set to max number of quick search results to return
max_search_results = 10 # set to max number of search results to return (deep search results, higher value scraps more data)
max_quick_product_results = 99 # set to max number of quick product links results to return after search from db
max_deep_product_results = 10 # set to max number of deep product links results to return after search from db (higher value scraps more data)
webload_timeout = 30 # set to number of seconds to wait for a webpage to load
database_host = "proscraper.mysql.pythonanywhere-services.com"
database_user = "proscraper"
database_password = "nigganigga"
database_name = "proscraper$default"
secret_key = "secret key"