# PuerkitoBio/goquery

A little like that j-thing, only in Go.

Repository: https://github.com/PuerkitoBio/goquery
Canonical: https://ross.abutalabs.com/products/goquery
Language: Go
License: BSD-3-Clause
License Family: permissive
Topics: selector-strings, jquery, html-parsing, goquery
Last push: 2026-08-17T13:17:12+00:00

## Health v2 (maintenance only)
Score: 86/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 98, release rhythm 63, longevity 100
- inputs: {"age_days": 5118, "days_push": 16, "days_rel": 171, "gap_med": 84.0, "n_releases_24m": 7}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 14981, forks 935 (observed 2026-08-28T04:11:09.016222+00:00)

## What it is
goquery is a Go library that provides a jQuery-like syntax for parsing, traversing, and manipulating HTML documents, built on Go's net/html package and the cascadia CSS selector library. It offers a chainable API familiar to jQuery users, though it omits stateful DOM manipulation functions and requires UTF-8 encoded input.

## Use cases
- scrape data from html pages in go
- parse html documents with css selectors
- extract links and text from web pages
- traverse and filter dom elements like jquery
- build a web crawler or scraper in go

## When to choose
- you want jQuery-style selector and traversal syntax in Go
- you need to parse well-formed or real-world HTML into a queryable structure
- you are building scrapers or crawlers in Go

## When to avoid
- you need to modify rendered page state like styles or layout (css(), height())
- your source HTML is not UTF-8 and you cannot transcode it
- you need a full DOM manipulation or browser automation tool

## Facets
- artifact type: library
- maturity: stable
- function: parser, web-scraping
- domain: web-development, crawlers, developer-tools
- platform: go, cross-platform
- tags: jquery-like, css-selectors, html-parsing, dom-traversal

## Member repositories
- PuerkitoBio/goquery (main) score 86

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:11:09.016222+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:06:47.524919+00:00, confidence not recorded.
  - readme: https://github.com/PuerkitoBio/goquery (fetched 2026-08-28T04:11:09.016222+00:00, sha d9fc0a4f655b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
