Broken Image Checker is a Python-based tool designed to identify and report broken images on websites. This tool is perfect for web developers, SEO specialists, and content managers who want to ensure their websites are free of broken image links, improving user experience and search engine rankings.
- Scans web pages starting from a given URL.
- Detects broken images and image redirects.
- Generates a detailed CSV report with broken image information.
- Handles rate-limiting (HTTP 429) and respects website policies.
- Python 3.7 or higher
-
Clone the repository using GitHub Desktop:
- Open GitHub Desktop.
- Click on
File > Clone Repository. - Enter the repository URL:
https://github.com/ali-han/Broken-Image-Checker.git. - Choose a local path and click
Clone.
Alternatively, download the repository as a ZIP file:
- Go to the repository page on GitHub.
- Click the
Codebutton and selectDownload ZIP. - Extract the ZIP file to your desired location.
-
Install the required dependencies using
pip:pip install -r requirements.txt
If
pip3is required on your system:pip3 install -r requirements.txt
-
Run the script using Python:
python run.py
If
python3is required on your system:python3 run.py
-
Enter the starting URL when prompted (e.g.,
https://example.com). -
To stop the scan at any time, press
CTRL+C. -
The script will crawl the website, check for broken images, and generate a CSV report in the current directory.
- A CSV file named
broken_images_<timestamp>.csvwill be created in the current directory. - The CSV file contains the following columns:
- Page URL
- Broken Image URL
- Details
- This script is for educational purposes only. Use responsibly and respect website policies.
- The developer is not responsible for any misuse of this tool.
This project is licensed under the MIT License.