bamos/github-wiki-link-validator

Ensure all links in a Github Wiki point to valid locations within the Wiki.

★ 4Forks 2PythonGitHub ↗Compare

README

Github Wiki Link Validator

Ensure all internal links in a Github Wiki are valid.

Github wiki's present a unique problem for link validation because traditional validation is usually done by checking page response (usually for 404). However, the default behavior of a Wiki for an invalid link is to direct to a page creating the page, and there is currently no option to change this. Creating new pages like this is easy, but in large Wiki's links become difficult to manage and can lead to difficulties validating links.

This is a Python 3.3 script to crawl a published Github wiki and detect internal links pointing to invalid locations.

Dependencies.

  • Python 3.3
  • BeautifulSoup 4

Example.

$ ./link-validator.py https://github.com/bamos/github-wiki-link-validator/wiki

Contributors

bamoszmughal

Issues