检查md文件和awesomelist中的链接是否关闭。
awesome-check-link的Python项目详细描述
很棒的支票链接
检查md文件中的链接,尤其是在awesome列表中的链接是否关闭。在
安装
您可以通过pip(PyPI)或从源代码安装awesome-check-link
。在
python3 -m pip install awesome-check-link
或手动:
^{pr2}$要升级aclinks
:
python3 -m pip install --upgrade awesome-check-link
使用
CLI
$ python3 -m aclinks --help Awesome Check Links Usage: aclinks [--verbose --exit --down] -f FILE aclinks (-h | --help | --version) Options: -f --file Markdown file to scan. -e --exit Stop and raise error if a site is down. -d --down Show only down links and their line number. -v --verbose Verbose mode. Print more to stdout. -h --help Show this help. --version Show version.
$ git clone https://github.com/remiflavien1/awesome-anti-forensic $ cd awesome-anti-forensic $ aclinks -vd -f README.md # only display down links At line 24 : https://www.paterva.com/web7/buy/maltego-clients/casefile.php : Moved Permanently (301) At line 61 : https://www.bishopfox.com/resources/tools/other-free-tools/mafia/ : Moved Permanently (301) At line 64 : https://www.paterva.com/web7/buy/maltego-clients/maltego-ce.php : Moved Permanently (301)
使用退出模式(--exit flag
),如果一个链接断开,则退出程序。可以集成到CI/a工作流中。在
许可证
- 项目
标签: