A URL link checker CLI command for text files.
Project description
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.4.tar.gz
(7.3 kB
view details)
Built Distribution
File details
Details for the file vl-0.3.4.tar.gz
.
File metadata
- Download URL: vl-0.3.4.tar.gz
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 75ad14f737eab6455848fb09b6126b45664cd1f24999b915c5d702b2bc002127 |
|
MD5 | ce48936bbc93a3bcc3c3e907f555cf38 |
|
BLAKE2b-256 | 393bba9cb115d317cdace139fa4e343d027f030a089b0dbe545882f233b9f686 |
File details
Details for the file vl-0.3.4-py2.py3-none-any.whl
.
File metadata
- Download URL: vl-0.3.4-py2.py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1e5135dd9464ed233cb001758471c227618a4b8831236acf4dbdce66be0150f |
|
MD5 | de88437bcc37e1674f12f72962b5eeec |
|
BLAKE2b-256 | 3a559ef4f9a4dfd87023ae087926ebd6c629a1dddb043498721daa165aa0f3dc |