Split geckodriver and python for cleaner containers
This commit is contained in:
@@ -40,11 +40,16 @@ class PDFDownloader:
|
||||
options.set_preference("browser.download.dir", config["default_download_path"])
|
||||
|
||||
self.logger.info("Starting gecko driver")
|
||||
self.driver = webdriver.Firefox(
|
||||
# self.driver = webdriver.Firefox(
|
||||
# options = options,
|
||||
# service = webdriver.firefox.service.Service(
|
||||
# log_path = f'{config["local_storage_path"]}/geckodriver.log'
|
||||
# ))
|
||||
self.driver = webdriver.Remote(
|
||||
command_executor = 'http://localhost:4444',
|
||||
options = options,
|
||||
service = webdriver.firefox.service.Service(
|
||||
log_path = f'{config["local_storage_path"]}/geckodriver.log'
|
||||
))
|
||||
# can't set log path...
|
||||
)
|
||||
|
||||
residues = os.listdir(config["default_download_path"])
|
||||
for res in residues:
|
||||
|
Reference in New Issue
Block a user