Giter Club home page Giter Club logo

crawler-1's Introduction

Crawler

I am not currently developing any further on this project. If you want to check out the latest working version of this, please check here. You might also consider looking at one of the forks of this repo. If anyone wants to submit a PR, please do, otherwise I may or may not eventually get around to finishing the updated I started over a year ago.. and yes, I've learned my lesson about not branching off before starting new updates.

Sorry for any inconvenience.

Configuration

The crawler/config.php file needs to be populated before trying to crawl any websites. This is an explanation of the options.

  • BASE_URL – The base URL of the website to crawl. Include scheme/protocol and no trailing “/”
  • INIT_PATH – The relative path to the page that will be crawled first. Should begin with a “/” and include the filename, ie “/index.php.”
  • AUTH – This array will be POSTed to the login endpoint after generating a query string using http_build_query()
  • LOGIN_ENDPOINT – String – the relative path to start the session. Login details will be POSTed here.
  • FAILED_LOGIN_INDICATOR – String – A unique string that ONLY appears on the failed login response If this string is found in the response after attempting logging in, the script assumes that login failed and exits.
  • PDO_CONFIG – Array of MySQL database access details, including host, username, password, database.
  • CRAWLER_URLS_TABLE – The name of the table to store the results in. This table will be automatically generated with this name the first time you run the script.
  • FOLLOW_LINKS_LIKE – Only follow links that contain this substring. Leave empty to follow all links. This is useful if you only want to crawl one domain.
  • IGNORE_LINKS_LIKE – Array of strings. If any of the links match or contain any of these strings, they will be ignored.

Version

1.2

Legal

Released under Apache 2.0 License - Copywrite 2016 Robert Parham, All rights reserved.

crawler-1's People

Contributors

pamblam avatar

Watchers

James Cloos avatar

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.