Coder Social home page Coder Social logo

actor_crawler's Introduction

Actor Crawler

This project is a highspeed website crawler that is designed to take advantage of the actor model in order to quickly crawl your website in search of broken links. Unlike a serial spider, this can handle ~1000 links per minute depending on your internet connection, the site speed, and the hardware you are running on.

It is written in python, using thespian.py for the actor model code.

Install

Setup instructions on a mac

  1. Clone the repo,
git clone https://github.com/mc706/actor_crawler.git
  1. Create a virtualenv
mkvirtualenv actor_crawler -p ~/.pyenv/versions/3.6.0/bin/python
  1. Install python requirements
pip install -r requirements.txt
  1. [Optional] Ensure Phantomjs is installed
brew install phantomjs

Setup:

  1. Create a folder in the sites directory with no spaces: ie: test_com
  2. Inside of your new folder, create a config.yaml file
  3. fill the file with the following
key: test_com
name: Test.com
domain: http://www.test.com
check_third_party: False
screen_shot: False
output_links: True
entry_points:
  - http://www.test.com
  - http://www.test.com/secret

Replacle the above sections as you see fit.

Running:

python crawler.py test_com
  • Note if your run fails in the middle, or you want to start again but you are getting an address already in use error, try killall python

Reporting:

There are a few outputs of the run.

Whenever you do a run, it will create a timestamped folder of inside of your directory that has a pages.json and a report.txt.

actor_crawler's People

Contributors

mc706 avatar

Watchers

 avatar  avatar

Forkers

bmoregeo

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.