跳转到主要内容

简单的文本/ markdown链接状态检查器

项目描述

链接状态

检查链接状态

Python Versions PyPI version Downloads github actions License: GPLv3 Code style: black

这是用于文本/ 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(无质量保证)来跳过任何行的链接检查。例如,对于 htmlmarkdown 使用 <-- noqa -->,对于 python 使用 #noqa 等...

贡献指南

如果您想贡献,请阅读项目的贡献指南这里

行为准则

有关社区行为准则,请遵循以下链接

项目详情


下载文件

下载适合您平台的应用程序。如果您不确定选择哪个,请了解更多关于安装包的信息。

源代码分发

linkstatus-1.0.tar.gz (24.6 kB 查看哈希值)

上传时间 源码

构建的发行版

linkstatus-1.0-py3-none-any.whl (17.4 kB 查看哈希值)

上传时间 Python 3

由以下支持

AWSAWS 云计算和安全赞助商 DatadogDatadog 监控 FastlyFastly CDN GoogleGoogle 下载分析 MicrosoftMicrosoft PSF赞助商 PingdomPingdom 监控 SentrySentry 错误日志 StatusPageStatusPage 状态页面