Ready to run python 3.6.4 docker image with chrome, selenium and scrapy installed
- Run
docker run --rm -it windness/chrome-selenium-scrapy:python /bin/bash
- Run
nano simple-selenium.py
or usevim
as you like - Copy the code inside
simple-selenium.py
and paste it - Save the file and run
python simple-selenium.py
See scrapy_tutorial
folder for guidance.
To run a scrapy project, you can either choose to pull your code from your SVC or use this image to build your own custom docker image
- https://developers.google.com/web/updates/2017/04/headless-chrome#drivers
- https://sites.google.com/a/chromium.org/chromedriver/downloads
- https://github.com/Leafney/alpine-selenium-chrome
- https://github.com/yukinying/chrome-headless-browser-docker
- https://scrapy.org/
- http://selenium-python.readthedocs.io/