Skip to main content

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.

Source Distribution

vl-0.3.3.tar.gz (7.2 kB view details)

Uploaded Source

File details

Details for the file vl-0.3.3.tar.gz.

File metadata

  • Download URL: vl-0.3.3.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for vl-0.3.3.tar.gz
Algorithm Hash digest
SHA256 b907d0eb291e776a1060e6e35ed33c6b19aa349226ccb44d4a8dc64e3c56df15
MD5 c3ab863b5044b306029a5aa7c059f523
BLAKE2b-256 e43c0492df53da22b45f35083d89887ea6a48a3acd7c0a2f92c1343a1aca75fa

See more details on using hashes here.

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