Python + Chromedriver + Selenium | @UmSaldanha
git clone https://github.com/juniorsaldanha/docker-python-chromedriverheadless
cd docker-python-chromedriverheadless
docker run -it -w /usr/workspace -v $(pwd):/usr/workspace umsaldanha/docker-python-chromedriverheadles:1.0 python test_webscrapping.py
~ Go to directory of your code and run one of these two codes , change the "script.py" name for the name of your python file.
docker run -it -w /usr/workspace -v $(pwd):/usr/workspace umsaldanha/docker-python-chromedriverheadles:1.0 python script.py
Command2: This way you won't be attached to the container and you script will run as service (background), make sure that you have a loop for your script doesn't stop.
docker run -it -w /usr/workspace -v $(pwd):/usr/workspace umsaldanha/docker-python-chromedriverheadles:1.0 python script.py
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
GitHub for Issue, Contributing, etc
Please make sure to update tests as appropriate.