Code Monkey home page Code Monkey logo

proxy_web_crawler's Introduction

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

  • It first scrapes a list of proxies from the web using SSL Proxies
  • Then using a new proxy socket for each iteration, the specified keyword(s) is searched for via Bing until the desired website is found
  • The website is then visited, and one random link is clicked within the website
  • The bot is slowed down on purpose
  • If searching with multiple keywords, wrap them in quotes: "example search phrase"

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.