A Go library that offers a structured API to build crawlers, scrapers, and spiders and pull data from websites.
Overview
Colly targets Go developers who need to collect structured information from the web. It exposes an interface for defining how a crawler visits pages, follows links, and reacts to HTML elements.
The framework handles per-domain rate limits and concurrency caps, cookies and sessions, synchronous and parallel fetch modes, response caching, and decoding of non-Unicode bodies. It can honor robots.txt rules and supports distributed scraping setups. Configuration can be driven partly through environment variables, and optional extensions add capabilities beyond the core.
Example programs show patterns such as visiting a start URL and enqueueing anchors found on each page. Documentation, articles, and sample datasets are published on the project site.
Colly is used as a dependency in other public scraping and automation projects.
Key features
- Callback-based collector API
- Per-domain delay and limits
- Cookie and session handling
- Parallel and async fetching
- Distributed scraping
- Response caching
- Robots.txt support
- Non-Unicode decoding
Use cases
- Structured website extraction
- Link-following crawlers
- Data mining pipelines