search for a website with a different proxy each time

This script automates the process of searching for a website via keyword and the Bing search engine.... page after page

Pass a complete URL and at least 1 keyword as command line arguments:
python proxy_crawler.py -u https://www.example.com -k keyword

python proxy_crawler.py -u https://www.whatsmyip.org -k "my ip"

If on a Linux system, proxy_crawler can run headless. Give the -x option (requires XVFB):
python proxy_crawler.py -u https://www.whatsmyip.org -k "my ip" -x


Along with Python 3 and geckodriver, the following are also required:

    
pip install selenium
apt-get install xvfb (Linux only)
    



proxy_crawler.py passes pep8/pycodestyle

I use this version of geckodriver on Ubuntu:

wget https://github.com/mozilla/geckodriver/releases/download/v0.26.0/geckodriver-v0.26.0-linux64.tar.gz

geckodriver should be unzipped and saved somewhere in your PATH... ie: /usr/local/bin


screenshot



This was developed on Ubuntu 16.04.4 LTS with selenium/geckodriver and firefox 60.0
Also tested on Ubuntu 18.04
Author: rootVIII 2018-2020