Coder Social home page Coder Social logo

shadawck / awesome-check-link Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 0.0 31 KB

Check if the urls contained in a markdown file are down or not.

License: MIT License

Makefile 6.18% Python 91.96% Dockerfile 1.86%
url-check url-parser markdown markdown-parser awesome awesome-list python pypi testing url readme

awesome-check-link's Introduction

codecov PyPI version Requirements Status Code Coverage Quality check

awesome-check-link

Check if links in md file and more particularly in awesome-list are down or not.

Install

You can install awesome-check-link either via pip (PyPI) or from source.

python3 -m pip install awesome-check-link

Or manually:

git clone https://github.com/remiflavien1/awesome-check-link
cd awesome-check-link
python3 setup.py install

To upgrade aclinks:

python3 -m pip  install --upgrade awesome-check-link

Usage

CLI

$ aclinks --help  
Awesome Check Links 

Usage:
    aclinks [--verbose --exit --down] -f FILE
    aclinks (-h | --help | --version)

Options:
    -f --file       Markdown file to scan.
    -e --exit       Stop and raise error if a site is down.
    -d --down       Show only down links and their line number.
    -v --verbose    Verbose mode. Print more to stdout.
    -h --help       Show this help.
    --version       Show version.

Example of output for the Awesome-anti-forensic

$ git clone https://github.com/remiflavien1/awesome-anti-forensic
$ cd awesome-anti-forensic
$ aclinks -vd -f README.md # only display down links

At line 24 : https://www.paterva.com/web7/buy/maltego-clients/casefile.php : Moved Permanently ( 301 )
At line 61 : https://www.bishopfox.com/resources/tools/other-free-tools/mafia/ : Moved Permanently ( 301 )
At line 64 : https://www.paterva.com/web7/buy/maltego-clients/maltego-ce.php : Moved Permanently ( 301 )

With exit mode (--exit flag), exit the program if one link is down. Can be integrated in a CI/CD workflow.

License

MIT

awesome-check-link's People

Contributors

shadawck avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

awesome-check-link's Issues

Processing link with "www"

Try removing www part and perform a new request with àllow_redirection=True.
In some case you will get the redirection :
Example :
https://www.sno.phy.queensu.ca/~phil/exiftool/ don't work
but https://sno.phy.queensu.ca/~phil/exiftool/ redirect to exiftool.org

Make more test for non-200 header

  • : Not Acceptable ( 406 )
  • : Not Allowed ( 405 )
  • : Service Unavailable ( 503 )
  • : Forbidden ( 403 )
  • : Request Timeout ( 408 )
  • : Temporary redirect ( 307 )

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.