Git Product home page Git Product logo

404-analyser's Introduction

404 Analyser

By Peter Polle

Description

404 Analyser is a CLI app that finds broken links on a website by crawling through it and and writting the resulting broken links into an aptly named CSV file.

How It Works

404 Analyser works by crawling through a website finding all links on a page and testing if they are broken or not. It will in turn parse through all the links to find other links on the website and test those too. This process continues untill all links on the website have been tested. If a links doesnt have a status 200, it is registered as a broken link. Only links with the same top level domains as the base url will have their 404 status tested.

Usage

You can run the script directly from the terminal via Python 3.

Valid arguments are:

  • base_url required, URL at which the crawler should start

Example:

python analyse.py https://example.com

CSV Files

If any broken links will be found, a csv file will be saved in a 'Broken Links' directory. The file will take the top level domain name of the website that was just crawled.

Example: For https://example.com the name of the csv file will be example.csv

Requirements

  • Python 3
  • Beautiful Soup
  • requests
  • argparse
  • csv
  • tldextract
  • logging

License

This project is licensed under the MIT License - see the LICENSE.md file for details

404-analyser's People

Contributors

ppolle avatar

Stargazers

Tadeu Banzato avatar Nicolas Lassalle avatar

Watchers

James Cloos avatar  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.