first docker functionality
This commit is contained in:
@@ -14,7 +14,7 @@ import time
|
||||
import sys
|
||||
|
||||
def load_settings():
|
||||
with open('settings.json') as file:
|
||||
with open('conf/conf.json') as file:
|
||||
return json.load(file)
|
||||
|
||||
def fetch_via_browser(newfile):
|
||||
@@ -27,9 +27,11 @@ def fetch_via_browser(newfile):
|
||||
"download.default_directory" : set['files'],
|
||||
"profile.default_content_settings.popups" : 0,
|
||||
}
|
||||
logging.info(prefs)
|
||||
logging.info("prefs: ", prefs)
|
||||
options.add_experimental_option("prefs", prefs)
|
||||
options.add_argument("--headless=new")
|
||||
options.add_argument("--headless")
|
||||
options.add_argument("--disable-dev-shm-usage")
|
||||
options.add_argument("--no-sandbox")
|
||||
browser = webdriver.Chrome(options=options)
|
||||
wait = WebDriverWait(browser, 10)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user