Skip to content

yingtu35/dead-link-hunter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dead Link Hunter

A Web Scraping application written in Go that helps you find all dead links in your website

Features

  • Concurrently scan all pages of a website for dead links
  • Handle dynamic content scraping with headless browsers
  • Customizable scan depth
  • Customizable concurrency level
  • Export the results to a CSV file
  • Export the results to a JSON file

Usage

  1. Clone the repository
git clone https://github.com/yingtu35/dead-link-hunter.git
cd dead-link-hunter
  1. Run the server directly or build the binary
go run cmd/app/main.go --url yourwebsite.com

or

go build -o dead-link-hunter cmd/app/main.go
./dead-link-hunter --url yourwebsite.com

Command-line Options

Flag Description Default Required
--url Website URL to scan for dead links - Yes
--static Enable static mode (faster but doesn't render JavaScript) false No
--export Export format (csv or json) - No
--filename Name of the export file (without extension) result No
--maxDepth Maximum crawl depth from starting URL 5 No
--maxConcurrency Maximum number of concurrent requests 20 No
--timeout Request timeout in seconds 10 No

Examples

# Basic usage with default settings
./dead-link-hunter --url example.com

# Static scan with custom concurrency and export to CSV
./dead-link-hunter --url example.com --static --maxConcurrency 20 --export csv

# Deep scan with longer timeout and JSON export
./dead-link-hunter --url example.com --maxDepth 10 --timeout 20 --export json --filename deep-scan

Roadmap

  • Support for JavaScript rendering with headless browsers
  • Add support for custom scan depth
  • Add support for custom concurrency level
  • Add support for exporting results

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

A Web Scraper written in Go that helps you find all dead links in your website

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages