{"id":30596049,"url":"https://github.com/jmousqueton/check-broken-link","last_synced_at":"2025-08-29T21:13:44.031Z","repository":{"id":308208363,"uuid":"1032017258","full_name":"JMousqueton/Check-broken-Link","owner":"JMousqueton","description":"Multi-threaded Python tool for crawling and checking all internal links on a website, with live Rich dashboard, broken link export (CSV), and detailed source tracking.","archived":false,"fork":false,"pushed_at":"2025-08-04T17:21:12.000Z","size":106,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-04T20:41:59.437Z","etag":null,"topics":["check","crawler","error400","error404","error500","links"],"latest_commit_sha":null,"homepage":"","language":"Python","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/JMousqueton.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,"zenodo":null}},"created_at":"2025-08-04T17:14:45.000Z","updated_at":"2025-08-04T17:22:30.000Z","dependencies_parsed_at":"2025-08-04T20:42:00.486Z","dependency_job_id":"4c27c85a-3eac-484e-9e34-e070ef63fa51","html_url":"https://github.com/JMousqueton/Check-broken-Link","commit_stats":null,"previous_names":["jmousqueton/check-broken-link"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/JMousqueton/Check-broken-Link","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JMousqueton%2FCheck-broken-Link","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JMousqueton%2FCheck-broken-Link/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JMousqueton%2FCheck-broken-Link/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JMousqueton%2FCheck-broken-Link/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JMousqueton","download_url":"https://codeload.github.com/JMousqueton/Check-broken-Link/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JMousqueton%2FCheck-broken-Link/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272765500,"owners_count":24989398,"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","status":"online","status_checked_at":"2025-08-29T02:00:10.610Z","response_time":87,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["check","crawler","error400","error404","error500","links"],"created_at":"2025-08-29T21:13:35.480Z","updated_at":"2025-08-29T21:13:44.025Z","avatar_url":"https://github.com/JMousqueton.png","language":"Python","funding_links":["https://www.buymeacoffee.com/ransomwarelive"],"categories":[],"sub_categories":[],"readme":"# 🔗 Internal Link Checker\n\n**Multi-threaded Python tool to crawl and check all internal links on your website – with live progress, broken link export, and detailed reporting.**\n\n[![Author: Julien Mousqueton](https://img.shields.io/badge/Author-Julien%20Mousqueton-blue)](https://fr.linkedin.com/in/julienmousqueton)\n[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](LICENSE)\n\n---\n\n## ✨ Features\n\n- **Crawl and check** all internal links from any starting URL (configurable depth).\n- **Multi-threaded** for fast site coverage.\n- **Live terminal dashboard** using [Rich](https://github.com/Textualize/rich).\n- Detects and reports **broken links** (`400`, `404`, `500`, and network errors).\n- **CSV export** of broken links – at end of scan or in real time.\n- Tracks and displays source pages for every broken link.\n- **Easy to use:** works out-of-the-box, just give it a URL!\n\n---\n\n## 📸 Screenshot\n\n![Internal Link Checker Screenshot](.github/screenshot.png)\n\n\u003e _Live progress: discovered links, checked, in queue, and error breakdown._\n\n\n## 🚀 Quick Start\n\n### 1. Install requirements\n\n```bash\npip install requests beautifulsoup4 rich\n```\n\n### 2. Run the checker\n\nBasic usage:\n```bash\npython check_broken_links.py -u https://example.com\n```\n\n#### Common options:\n\n- **Set crawl depth:**  \n  `-d 3` (default is 5)\n\n- **Set number of threads:**  \n  `-t 15` (default is 10)\n\n- **Export broken links (after scan):**  \n  `-e broken_links.csv`\n\n- **Export broken links in real time:**  \n  `--export-realtime live_broken_links.csv`\n\n#### Example:\n\n```bash\npython check_broken_links.py -u https://example.com -d 3 -t 20 -e errors.csv\n```\n\n---\n\n## 📄 Output\n\n- **Terminal Dashboard:** Live stats and metrics.\n- **Broken Link Summary Table:** After scan, a summary of all detected broken links with their source.\n- **CSV Export:** If enabled, CSV file(s) containing:\n    - Error code / message\n    - Broken URL\n    - Source page (where the link was found)\n\n---\n\n## 📝 Example CSV\n\n| Error | URL                      | Source                |\n|-------|--------------------------|-----------------------|\n| 404   | https://example.com/foo  | https://example.com/  |\n| 500   | https://example.com/api  | https://example.com/  |\n| ERROR | https://example.com/bar  | https://example.com/  |\n\n---\n\n## ⚙️ Usage Details\n\n- **Crawls only internal links** (same domain as your base URL).\n- Handles HTML anchor tags (`\u003ca href=\"...\"\u003e`), skips `mailto:` and `tel:`.\n- Follows links up to user-specified depth.\n- Thread-safe, designed for performance.\n\n---\n\n## 👨‍💻 Author\n\nJulien Mousqueton  \n[LinkedIn: julienmousqueton](https://fr.linkedin.com/in/julienmousqueton)  \n[@JMousqueton](https://twitter.com/jmousqueton)\n\n---\n\n## 📃 License\n\nMIT License\n\n---\n\n## ⭐️ Feedback \u0026 Contributions\n\n- Issues and PRs are welcome!\n- Feel free to connect or [buy me a coffee](https://www.buymeacoffee.com/ransomwarelive) if you find this useful.\n\n---\n\n_Professional Python link-checking made simple and beautiful. Enjoy!_\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmousqueton%2Fcheck-broken-link","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjmousqueton%2Fcheck-broken-link","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmousqueton%2Fcheck-broken-link/lists"}