Check Broken Link on Website with Lychee

Hello,

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)

GitHub - lycheeverse/lychee: ⚡ Fast, async, stream-based link checker written in Rust. Finds broken URLs and mail addresses inside Markdown, HTML, reStructuredText, websites and more!
⚡ Fast, async, stream-based link checker written in Rust. Finds broken URLs and mail addresses inside Markdown, HTML, reStructuredText, websites and more! - GitHub - lycheeverse/lychee: ⚡ Fast, asy...

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:

C:\Users\Ariq\Desktop>lychee.exe https://rfdatabase.net/weapon/

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/]:
✗ [404] https://mywebsite.com/weapon/metal-elven-gatling-canon/ | Failed: Network error: Not Found
✗ [404] https://mywebsite.com/wp-content/uploads/2020/07/Launcher_-Flame-Thrower-min.png | Failed: Network error: Not Found
✗ [404] 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!