{"id":15908430,"url":"https://github.com/capjamesg/markdown-html-link-rot","last_synced_at":"2025-10-07T01:38:06.879Z","repository":{"id":104873361,"uuid":"442507405","full_name":"capjamesg/markdown-html-link-rot","owner":"capjamesg","description":"A Ruby script to substitute invalid links in markdown and HTML with a link to an Internet Archive backup.","archived":false,"fork":false,"pushed_at":"2021-12-30T15:00:55.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-28T19:16:39.421Z","etag":null,"topics":["archiving","linkrot","ruby"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/capjamesg.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-12-28T15:37:09.000Z","updated_at":"2021-12-30T15:00:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"50733b38-be02-4335-9a7b-9983e5e076e5","html_url":"https://github.com/capjamesg/markdown-html-link-rot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/capjamesg%2Fmarkdown-html-link-rot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/capjamesg%2Fmarkdown-html-link-rot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/capjamesg%2Fmarkdown-html-link-rot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/capjamesg%2Fmarkdown-html-link-rot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/capjamesg","download_url":"https://codeload.github.com/capjamesg/markdown-html-link-rot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246912534,"owners_count":20853873,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["archiving","linkrot","ruby"],"created_at":"2024-10-06T14:21:28.058Z","updated_at":"2025-10-07T01:38:01.858Z","avatar_url":"https://github.com/capjamesg.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Markdown / HTML Link Rot Detector\n\nA Ruby script to detect link rot in HTML and markdown documents and replace broken links with an Internet Archive backup.\n\n## Getting Started\n\nFirst, install the required dependencies for this project to work using bundle:\n\n    bundle install\n\nNext, run the link rot detector program:\n\n    ruby watch.rb\n\nThe link rot detector program will check for links that return 404s or an invalid response. If such a link is found, the Internet Archive's Wayback Machine API is queried to see if a snapshot of the site is available. If a snapshot is found, the link to the most recent snapshot is used to replace the broken link in the HTML / markdown document being read.\n\nAll changes are logged to a log file whose name is printed to the console when the program runs.\n\nYou can optionally use the --webhook flag to send a notification with a JSON payload to a server when the program has finished running. The payload looks like this:\n\n    {\n        \"message\": \"\n            Cali has identified 0 broken links. These links have been replaced with archived versions.\n\n            See below for the changes made.\n\n            [List of broken links, if applicable]\n        \"\n    }\n\n## Technologies\n\nThe following libraries and technologies are used in this project:\n\n- Ruby\n- nokogiri\n- logger\n- dotenv\n- HTTParty\n\n## Contributors\n\n- capjamesg","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcapjamesg%2Fmarkdown-html-link-rot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcapjamesg%2Fmarkdown-html-link-rot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcapjamesg%2Fmarkdown-html-link-rot/lists"}