Skip to main content

An asyncio based multipurpose link checker.

Project description

Statlink

An asyncio based multipurpose link explorer.

  • Check broken links in websites.
  • Headless browsers support (Chromium, Firefox, WebKit).
  • Domain / URL Regex / status code filters.
  • Incremental timeout.
  • Panda dataframe / CSV output.
  • Database store support.

Get started

Installation

pip install statlink

With browser support:

pip install statlink[chromium|fifefox|webkit|all]

Usage

Usage: statlink [OPTIONS] [SOURCES]...

Options:
  -c, --concurrency INTEGER       Set the maximum number of concurrent
                                  requests.  [default: 20]
  --allow-external                Allow external URL to be checked.
  -d, --depth INTEGER             Recursion depth value for checking URLs,
                                  negative value will set it to infinity.
                                  [default: -1]
  -t, --timeout INTEGER           Set timeout for each requests.  [default:
                                  20]
  --engine [aiohttp|chromium|firefox|webkit]
                                  Engine that will be used to make requests.
                                  [default: aiohttp]
  --help                          Show this message and exit.

Examples

Find the dead links for a https domain

$ statlink https://google.com

Find the dead links in a text file

$ statlink -d 0 bad_urls.txt

Library

from statlink.crawler import Crawler

crawler = Crawler()
crawler.add_url("https://google.com")
crawler.start()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

statlink-0.1.6.tar.gz (11.1 kB view hashes)

Uploaded Source

Built Distribution

statlink-0.1.6-py3-none-any.whl (13.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page