Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

A URL link checker CLI command for text files.

Project description

https://img.shields.io/pypi/v/vl.svg https://img.shields.io/travis/ellisonleao/vl.svg https://landscape.io/github/ellisonleao/vl/master/landscape.svg?style=flat https://coveralls.io/repos/github/ellisonleao/vl/badge.svg?branch=master

A URL link checker CLI command for text files. Heavily inspired on awesome_bot

Installation

Installing pip version:

$ pip install vl

Usage

To use it:

Usage: vl [OPTIONS] DOC

  Examples: simple call $ vl README.md

  Adding debug outputs

  $ vl README.md --debug

  Adding a custom timeout for each url. time on seconds.

  $ vl README.md -t 3

  Adding a custom size param, to add more requests per time

  $ vl README -s 1000

  Skipping some error codes. This will allow 500 and 404 responses to be
  ignored

  $ vl README.md -a 500,404

  Adding Whitelists

  $ vl README.md -w server1.com,server2.com

Options:
  --version               Show the version and exit.
  -t, --timeout FLOAT     request timeout arg. Default is 2 seconds
  -s, --size INTEGER      Specifies the number of requests to make at a time.
                                                  default is 100
  -d, --debug             Prints out some debug information like execution
                                                  time and exception messages
  -a, --allow-codes TEXT  A comma splitted http response allowed codes
  -w, --whitelist TEXT    A comma splitted whitelist urls
  --help                  Show this message and exit.

Do i need this lib?

I don’t know! Currently i am using to check for bad links on my magictools README file. I hope it can serve for many purposes in the future.

Roadmap

  • How can we make it faster?!
  • API

Project details


Download files

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

Files for vl, version 0.3.4
Filename, size File type Python version Upload date Hashes
Filename, size vl-0.3.4-py2.py3-none-any.whl (6.9 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size vl-0.3.4.tar.gz (7.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page