Skip to content

The Broken Image Checker is a Python script that crawls a given website, checks all images on its pages, and identifies broken image links. The results are saved in a CSV report.

License

Notifications You must be signed in to change notification settings

phpsmashcode/Broken-Image-Checker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

10 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ› οΈ Broken Image Checker

πŸ“Œ Overview

The Broken Image Checker is a Python script that crawls a given website, checks all images on its pages, and identifies broken image links. The results are saved in a CSV report.

Visit Repository


πŸš€ Features

  • βœ… Crawls a website starting from a given URL.
  • βœ… Checks all images for broken links (404 errors, timeouts, etc.).
  • βœ… Saves a detailed report of broken images, including:
    • Page URL where the image was found.
    • Image URL.
    • HTTP status.
    • Image's alt text (if available).
    • Image location in the page.
  • βœ… Multi-threaded for fast processing.
  • βœ… Option to limit the number of pages to crawl.
  • βœ… Creates a report in an image_reports/ directory.

πŸ“‹ Prerequisites

Ensure you have Python installed (Python 3.6+ recommended). Install required dependencies using:

pip install requests beautifulsoup4

πŸ’» Usage

Clone the repository:

git clone https://github.com/phpsmashcode/Broken-Image-Checker.git

Run the script with:

python broken-image-checker.py

πŸ“Œ You Will Be Prompted To:

  • πŸ”Ή Enter the website URL to check (including http:// or https://).
  • πŸ”Ή (Optional) Enter the maximum number of pages to crawl (leave blank for unlimited).

πŸ“œ License

This project is licensed under the MIT License.


🀝 Contributing

πŸš€ Feel free to contribute! Fork the repository, make your changes, and submit a pull request.


πŸ‘€ Author

Developed by Hariprasad Vijayan.


πŸ“¬ Contact

For issues or suggestions, open an issue on GitHub. πŸ“©

About

The Broken Image Checker is a Python script that crawls a given website, checks all images on its pages, and identifies broken image links. The results are saved in a CSV report.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published