Help us shape the future of Go! Take the 2026 Go Developer Survey

crawly

module
v0.0.0-...-f4856b7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 27, 2026 License: Apache-2.0

README ΒΆ

Crawly πŸ•·οΈ

A simple web crawler written in Go β€” built to practice core Go concepts like HTTP requests, parsing, modular design, and package organization.

βš™οΈ Features

  • Crawl a given URL
  • Extract links from HTML pages
  • Remove duplicate URLs
  • Check HTTP status codes
  • Simple logging system
  • Modular structure (separation of concerns)

🧱 Project Structure

crawly/
β”œβ”€β”€ cmd/            # Entry point (CLI)
β”œβ”€β”€ crawly/         # Core crawling logic
β”œβ”€β”€ checker/        # URL validation & utilities

## πŸ› οΈ How It Works

1. Start with a root URL
2. Fetch HTML content
3. Parse links (`<a>` tags)
4. Normalize & deduplicate URLs
5. Optionally check status codes
6. Log results


## ▢️ Usage

```bash
go run /cmd/main.go <url>

Example:

go run /cmd/main.go https://example.com

πŸ“„ License

Apache 2.0

Directories ΒΆ

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL