用于文本文件的URL链接检查CLI命令。
项目描述
用于文本文件的URL链接检查CLI命令。深受awesome_bot的启发。
安装
安装pip版本
$ pip install vl
用法
要使用它
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.
我需要这个库吗?
我不知道!目前我正在使用它来检查我的magictools README文件中的坏链接。我希望它未来可以用于许多目的。
路线图
我们如何让它更快?!
API
项目详情
下载文件
下载适合您平台的文件。如果您不确定选择哪个,请了解更多关于安装软件包的信息。
源分布
vl-0.3.4.tar.gz (7.3 kB 查看哈希值)
构建分布
vl-0.3.4-py2.py3-none-any.whl (6.9 kB 查看哈希值)