Python-v3.5.2
, Geckodriver-v0.11.1-linux64 (for browser)
, xorg-server 1.18.4 (for Xvfb virtual display)
Selenium-v3.0.2
, Xvfbwrapper-0.2.8
pip install [--user] selenium
pip install [--user] xvfbwrapper
- Browse binaries: geckdriver (v0.11.1)
# download
wget https://github.com/mozilla/geckodriver/releases/download/v0.11.1/geckodriver-v0.11.1-linux64.tar.gz
# unpack tarball
tar xf geckodriver-v0.11.1-linux64.tar.gz
# add unpacked bin to PATH env (NB: This should be added to an upstart script!)
export PATH="$PATH:/path/to/geckodriver/dir"
python crawler.py <URL> <ATTR> # Some HTML attribute to search for