简单的文本/ markdown链接状态检查器
项目描述
链接状态
检查链接状态
这是用于文本/ markdown文件的简单链接状态检查器。
安装
-
pip
pip install linkstatus --user
-
源代码
pip install . --user
用法
❯❯❯ 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 2 time)
--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
(无质量保证)来跳过任何行的链接检查。例如,对于 html
和 markdown
使用 <-- noqa -->
,对于 python
使用 #noqa
等...
贡献指南
如果您想贡献,请阅读项目的贡献指南这里。
行为准则
有关社区行为准则,请遵循以下链接。
项目详情
下载文件
下载适合您平台的应用程序。如果您不确定选择哪个,请了解更多关于安装包的信息。
源代码分发
linkstatus-1.0.tar.gz (24.6 kB 查看哈希值)
构建的发行版
linkstatus-1.0-py3-none-any.whl (17.4 kB 查看哈希值)
关闭
linkstatus-1.0.tar.gz的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | b85b6588197148848afff90163d335cb9232edf4bcd03fd3eb022d1a28bdb271 |
|
MD5 | 33ef9d8a2645b3a3aea56aaa286b76ca |
|
BLAKE2b-256 | a3d33e369e78a8b399e1fc9ffed734a8a5c1ecf31d6f327d819374e92e154a1d |
关闭
linkstatus-1.0-py3-none-any.whl的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 26e366ddaf40a85781af7d8e8aab5b36489ad2f5088507ccba6319577b6f490d |
|
MD5 | 4f149bc13acf45e0e55b0081318de48c |
|
BLAKE2b-256 | 9e22e703140a982bb0732ea52c8bae5b5b994e452c2424a654c9c842724dc447 |