In this post, I'll share a post: How to Check Broken Link Website, Markdown, HTML, reStructuredText, or any other text file or website with Lychee (Lycheeverse/lychee)
I have a case:
My website has a table with 3000+ links. It's nearly impossible or maybe takes time to check per the links on the table manually. So I decided to google it "Check Broken Link Github" and there is a repository called lycheeverse / lychee.
I'm interested in using this software, so I downloaded an exported release for Windows OS on this page https://github.com/lycheeverse/lychee/releases/tag/v0.10.3
Their exe (lychee-v0.10.3-windows-x86_64.exe) comes without GUI, so in order to run the application, I need to open Command Prompt in my windows 10.
and then use the following command:
Here's the output:
C:\Users\Ariq\Desktop>lychee.exe https://mywebsite.com/weapon/ Issues found in 1 input. Find details below. [https://mywebsite.com/weapon/]: ✗  https://mywebsite.com/weapon/metal-elven-gatling-canon/ | Failed: Network error: Not Found ✗  https://mywebsite.com/wp-content/uploads/2020/07/Launcher_-Flame-Thrower-min.png | Failed: Network error: Not Found ✗  https://mywebsite.com/weapon/mine-presher | Failed: Network error: Not Found 🔍 4216 Total ✅ 4213 OK 🚫 3 Errors (HTTP:3)
Scan completely finished within minutes.
There are 4216 links checked and only 3 are errors (404).
Thanks Lycheeverse/lychee maintainer for creating this!