简单文本/标记链接状态检查器
linkstatus的Python项目详细描述
这是文本/标记文件的简单链接状态检查器。在
安装
皮普
pip install linkstatus --user
在来源
^{pr2}$ 在
用法:
❯❯❯ linkstatus --help Usage: linkstatus [OPTIONS][SOURCE]... Check Link Status Options: -r, --recursive Include all files from directories recursively -t, --timeout INTEGER Request timeout (default 4 second) -rt, --retry INTEGER Retry link status (default 2time) --help Show this message and exit. ❯❯❯ linkstatus tests/data/markdown_file.md Links in File: 'tests/data/markdown_file.md' ✓ L4 : https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet ✓ L8 : http://www.google.com ✓ L10 : https://www.google.com ✓ L12 : https://github.com/pythonpune/linkstatus ✓ L24 : http://www.example.com ✗ L34 : https://github.com/pythonpune/linkcheck (404) ✓ L39 : https://github.com//pythonpune/ … L41 : http://<hostname>:<port> (skip) … L43 : https://<hostname>:<port>/pages (skip)================================================================================================================= Links Status Summary Links UP: 6 Links SKIP: 2 Links DOWN: 1 Warning: Use `noqa` inline comment to skip link check. like, response code 403 due to header restrictions etc... =================================================================================================================
注意:通过添加noqa
(无质量保证)作为内联注释跳过任何行的链接检查
.比如<-- noqa -->
代表html
和markdown
,#noqa
代表{
贡献指南
如果你想贡献,请阅读项目贡献指南here。在
行为准则
关于社区行为准则,请遵循以下link。在
- 项目
标签: