Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/ismoreirakt/linkguard
- Owner: IsMoreiraKt
- Created: 2024-09-11T13:18:58.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-09-11T14:35:06.000Z (4 months ago)
- Last Synced: 2024-11-07T05:19:21.896Z (2 months ago)
- Topics: broken-link-finder, python
- Language: Python
- Homepage:
- Size: 20.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```