nschloe / deadlink Goto Github PK
View Code? Open in Web Editor NEW:skull: Checks and fixes URLs in code and documentation.
License: MIT License
:skull: Checks and fixes URLs in code and documentation.
License: MIT License
argparse struggles to determine if README.md is an additional ignore pattern or a path... maybe -i should be comma-separated or you have to specify multiple -i arguments?
Example:
➜ test_repo git:(main) wurl-check -i excluded_domains README.md
usage: wurl-check [-h] [-t TIMEOUT] [-c MAX_CONNECTIONS] [-k MAX_KEEPALIVE_CONNECTIONS]
[-i IGNORE [IGNORE ...]] [-a ALLOW [ALLOW ...]] [--version]
paths [paths ...]
wurl-check: error: the following arguments are required: paths
wurl-check README.md bad.txt repositories.json test.py -i excluded_domain yahoo.com
detects yahoo.com as an additional file I think (the output only mentions one ignored).
Hi,
I just found your nice deadlink
tool. It works quite well--but not for URLs with umlauts.
I use version: deadlink 0.5.0 [Python 3.10.12] Copyright (c) 2021-2022 Nico Schlömer <[email protected]>
If call deadlink with: deadlink check links.txt
where the links.txt
content is:
https://wiki.ubuntuusers.de/Shell/Befehlsübersicht
the output is as follows:
Found 1 unique URL in 1 file (ignored 0 files, 0 URLs)
Checking... ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 0:00:01
Failing permanent redirects (1):
301: https://wiki.ubuntuusers.de/Shell/Befehls
→ 404: https://wiki.ubuntuusers.de/Shell/Befehls/
It seems that deadlink stops at the umlaut "ü". Is it possible to allow umlauts in URLs?
Common in Wikipedia links.
Example: From https://en.wikipedia.org/wiki/Join_(SQL) link is recognized as https://en.wikipedia.org/wiki/Join_
.
Hello, I would like to use this package inside a script. But I cannot find any example. Could you add one exmaple on the home page ?
best
It could be more graceful, either printing the help or doing nothing.
Currently get:
...
... deadlink\_cli.py", line 53, in cli
return args.func(args)
AttributeError: 'Namespace' object has no attribute 'func'
v0.4.7
The following format works: https://XYZ
This format does not work: https://XYZ:443
I like this project!
I'd like to use it as a CI step for my calmcode project, but since that project contains hundreds of pages that it needs to check I was wondering if it's possible to add a flag such that your tool could also tell me what file the link was found in. I'll gladly hear it though if this is out of scope.
Would you consider making deadlink
available as a pre-commit hook ?
I'm down to open a PR if you're willing to review it.
As reference: tcort/markdown-link-check#169
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.