项目作者: butuzov

项目描述 :
Health checks for your documentation links. https://pypi.org/project/deadlinks
高级语言: Python
项目地址: git://github.com/butuzov/deadlinks.git
创建时间: 2019-09-13T10:53:06Z
项目社区:https://github.com/butuzov/deadlinks

开源协议:Apache License 2.0

下载


deadlinks

Stand with Ukraine
PyPI
Github (CI)
codecov

PyPI - Downloads

United 24
Help Oleg Butuzov


Features

  • Concurrent and recursive checks
  • Respect robots.txt restrictions (content only)
  • External links checks
  • Checking links within base url path
  • Retries in the case of 502, 503 and 504 http errors

Installing

Using package installer for Python

  1. # using pip - package installer for Python
  2. pip install deadlinks

Mac

  1. # we using custom tap to install deadlinks
  2. brew install butuzov/deadlinks/deadlinks

Using forked repo for development propose.

  1. # activate virtual environment to keep your local site-packages clean.
  2. python3 -m venv .venv
  3. source .venv/bin/activate
  4. pip install --upgrade pip
  5. # in case if you developing within forked repository
  6. cd /home/path/to/deadlinks
  7. pip install -r requirements.txt
  8. pip install -e .

Usage

See more examples at docs

  1. # Check links (including external) at http://gobyexample.com/ in 10 threads,
  2. # but not ones that leading to domains play.golang.org or github.com
  3. deadlinks gobyexample.com -n 10 -e -d play.golang.org -d github.com
  4. # Limiting check only to links found within /docs path.
  5. deadlinks http://localhost:1313/docs
  6. # Running checks for all local links that belong to a domain.
  7. deadlinks http://localhost:1313/docs/ -n 10 --full-site-check
  8. # Checking local html files
  9. deadlinks internal -n 10 --root=/var/html
  10. # Help yourself
  11. deadlinks --help

Contributing

Here is a quick start guide to contributing to deadlinks

  • Fork deadlinks repository.
  • Create feature branch based on develop.
  • Install package using development instructions.
  • Implement your feature and test it with make tests and make lints.
  • Create pull request back to development branch.

All your contributions are welcome!