heeplr / document-dl

Command line program to download documents from web portals
The Unlicense
23 stars 3 forks source link

Support for Remote selenium webdriver (Docker Version?) #3

Open CyrosX opened 3 years ago

CyrosX commented 3 years ago

Is it possible to configure a remote server for doing all the Selenium / browser work? There is webdriver.Remote for Selenium in Python to configure the ip / hostname and https://hub.docker.com/u/selenium Docker images for all browsers.

Thought about building a stack like this: document-dl container & selenium chrome container connected through docker docker network and a volume bind for an invoice directory (auto sub-dirs for all invoice providers).

Alternative: everything in one container (https://nander.cc/using-selenium-within-a-docker-container).

heeplr commented 3 years ago

Currently there is no support for the Remote webdriver. It could probably be implemented as some kind of RemoteSeleniumWebPortal() class. It's certainly a feature one might need but it imposes various problems (like, how to transfer the file from the docker instance to the document-dl instance, etc.) I might look into this in the future and leave this open as feature request.

EDIT: pull requests welcome :)