Git Product home page Git Product logo

spidy's Introduction

Spidy

Spidy provides a simple CLI tool for finding dead links on a target URI endpoint. It allows its users to check the status of all links only within or if desired in combination with the health of external links. It reports the status and state of the links and if any errors encountered, allowing the ability to discover dead or bad links.

Install

go get -u github.com/ardanlabs/spidy

Usage

  • Environment Variables Spidy allows delpoyment of its binary using environment variables which sets the target and flags for which the tool will crawl.

    • SPIDY_HTTP_TIMEOUT This sets the maximum timeout for which the client http requests will made with in milliseconds

    • SPIDY_TARGET_URL This sets the target URL which the client target for crawling

    • SPIDY_EXTERNAL_LINKS This sets the external flags which ensures allows crawling hosts from that of the target

    • SPIDY_MAX_WORKERS This sets the maximum workers to use for its operation.

 > export SPIDY_HTTP_TIMEOUT=30000
 > export SPIDY_MAX_WORKERS=300
 > export SPIDY_TARGET_URL="https://ardanlabs.com"
 > export SPIDY_EXTERNAL_LINKS=false
 > spidy
  • CLI Spidy provides two simple flags which sets the target URL to crawl and flips the flat to allow external links from the target host.
   // To crawl the giving url and no external links as well, using 120 workers
   spidy -url http://golang.org -workers 120 -timeout 30000

   // To crawl the giving url and external links as well
   spidy -url http://golang.org -externals true

spidy's People

Contributors

egonzo avatar influx6 avatar

Watchers

 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.