Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ismoreirakt/linkguard

A script that checks websites and returns all broken links.
https://github.com/ismoreirakt/linkguard

broken-link-finder python

Last synced: 22 days ago
JSON representation

A script that checks websites and returns all broken links.

Awesome Lists containing this project

README

        

# LinkGuard
**LinkGuard** is a tool for checking broken links on a website. The script scans a web page, extracts all the links found and checks that they are working correctly.

## Features
- **Link check:** Identifies broken links (HTTP status other than 200) on a web page.
- **Extract Links:** Collects all links found in `` tags with the `href` attribute.

## Requirements
- Python 3.6 or higher;

## Installation
1. Clone the repository:
```bash
git clone https://github.com/seuusuario/LinkGuard.git
cd LinkGuard
```

2. Install the necessary dependencies:
```bash
python3 -m venv venv
source venv/bin/activate # On Windows, use `venv\Scripts\activate`
pip install -r requirements.txt
```

## Use
To check for broken links on a website, run the script by passing the URL as an argument.

```bash
python3 src/main.py http://example.com
```

## Sample Output
```bash
python3 src/main.py https://github.com/
Found 99 links.
Broken links found:
https://www.linkedin.com/company/github
```