deadlink-0.5.0
توضیحات
Check and fix URLs in text files
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | deadlink-0.5.0 |
| نام | deadlink |
| نسخه کتابخانه | 0.5.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | - |
| ایمیل نویسنده | Nico Schlömer <nico.schloemer@gmail.com> |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/deadlink/ |
| مجوز | - |
<p align="center">
<a href="https://github.com/nschloe/deadlink"><img alt="deadlink" src="https://nschloe.github.io/deadlink/logo-with-text.svg" width="60%"></a>
</p>
[](https://pypi.org/project/deadlink/)
[](https://pypi.org/project/deadlink/)
[](https://github.com/nschloe/deadlink/)
[](https://pepy.tech/project/deadlink)
<!--[](https://pypistats.org/packages/deadlink)-->
[](https://github.com/nschloe/deadlink/actions?query=workflow%3Aci)
[](https://app.codecov.io/gh/nschloe/deadlink)
[](https://lgtm.com/projects/g/nschloe/deadlink)
[](https://github.com/psf/black)
Parses text files for HTTP URLs and checks if they are still valid. Install with
```
pip install deadlink
```
and use as
<!--TODO activate-->
<!--pytest-codeblocks:skip-->
```sh
deadlink check README.md # or multiple files/directories
# or deadlink c README.md
```
To explicitly allow or ignore certain URLs, use
```
deadlink check README.md -a http: -i stackoverflow.com github
```
This only considers URLs containing `http:` and _not_ containing `stackoverflow.com` or
`github`. You can also place allow and ignore lists in the config file
`~/.config/deadlink/config.toml`, e.g.,
```toml
allow_urls = [
"https:"
]
ignore_urls = [
"stackoverflow.com",
"math.stackexchange.com",
"discord.gg",
"doi.org"
]
igonore_files = [
".svg"
]
```
See
```
deadlink check -h
```
for all options.
Use
```sh
deadlink replace-redirects paths-or-files
# or deadlink rr paths-or-files
```
to replace redirects in the given files. The same filters as for `deadlink check` apply.
Example output:
<!--screenshot created with https://carbon.now.sh/-->

#### Similar projects:
- [awesome_bot](https://github.com/dkhamsing/awesome_bot)
- [brök](https://github.com/smallhadroncollider/brok)
- [link-verifier](https://github.com/bmuschko/link-verifier)
نیازمندی
| مقدار | نام |
|---|---|
| - | appdirs |
| - | httpx |
| - | rich |
| - | toml |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7 | Python |
نحوه نصب
نصب پکیج whl deadlink-0.5.0:
pip install deadlink-0.5.0.whl
نصب پکیج tar.gz deadlink-0.5.0:
pip install deadlink-0.5.0.tar.gz