Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken links #297

Open
AndreaCrotti opened this issue Feb 1, 2019 · 2 comments
Open

Broken links #297

AndreaCrotti opened this issue Feb 1, 2019 · 2 comments

Comments

@AndreaCrotti
Copy link
Contributor

I just noticed a broken link, and since the whole list of projects is in single yaml file, I thought we could simply scan then automatically.

Could be done in any language really, but I just wrote a few lines of Python:

import yaml, requests

for k, v in d.items():
    resp = requests.get(v['url'])
    if resp.status_code != 200:
        print("{} not found".format(k))

speclj not found
lein_diagnostics not found
sayid not found

Could it be automated I think as part of the build process?

@weavejester
Copy link
Owner

Having a script to check dead links is a good idea. Automating it is a touch harder, because you don't want to delete a project if its website is only temporarily down. I think I'd want to make actually removing dead links a manual process.

@AndreaCrotti
Copy link
Contributor Author

Yes well I think the script should not remove things automatically, simply run periodically to check for broken links and send a notification for example.
Not sure how to do that as part of this project though, it's a bit tricky.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants