Giter VIP home page Giter VIP logo

deadlink's Introduction

Nico from Berlin, math nerd and top-tier software engineer.

You can sponsor my open-source work at GitHub Sponsors. You'll also find information on consulting/code-for-hire there.

Languages

Python C++ C Fortran JavaScript

Popular projects

Stats

Find me

Gmail Github Twitter Discord

deadlink's People

Contributors

nschloe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

deadlink's Issues

Support for umlauts

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?

Feature Request: possible to add filenames?

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.

Call with no arguments errors

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

argument parsing issues

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).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.