A simple Python script to check for broken links on a website. This script can crawl a website to find and report broken links, with support for different output formats and custom headers.
- Check for broken links on a single URL or a list of URLs.
- Crawl web pages to find all links and check their status.
- Customize the depth of crawling.
- Generate reports in various formats: TXT, JSON, HTML, CSV, and XLSX.
- Exclude specific domains from being checked.
Ensure you have Python 3.x installed on your system. You will also need pip
to install the required libraries.
git clone https://github.com/Xnuvers007/brokenlink
cd brokenlink
pip install -r requirements.txt
./br.py -h
Linux:
alias brokenlink='/home/usernamelinux/path/to/directory/and/files/broken.py'
windows:
setx PATH "%PATH%;C:\path\to\file\br.py" /M
so you can run in everywhere just type br -h