# rust-scraper/scraper

HTML parsing and querying with CSS selectors

Repository: https://github.com/rust-scraper/scraper
Canonical: https://ross.abutalabs.com/products/scraper
Homepage: https://docs.rs/scraper
Language: Rust
License: ISC
License Family: permissive
Topics: hacktoberfest, rust
Last push: 2026-08-26T12:55:29+00:00

## Health v2 (maintenance only)
Score: 89/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 71, longevity 100
- inputs: {"age_days": 3897, "days_push": 7, "days_rel": 114, "gap_med": 75, "n_releases_24m": 8}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2417, forks 128 (observed 2026-08-28T04:06:50.377719+00:00)

## What it is
A Rust library for parsing HTML documents and querying them with CSS selectors, built on Servo's html5ever and selectors crates for browser-grade parsing. It supports parsing full documents and fragments, with optional serde support and deterministic iteration features.

## Use cases
- parse html in rust
- extract elements from html with css selectors
- scrape web page content
- parse html fragments
- query dom elements by selector
- build a web scraper in rust

## When to choose
- you need browser-grade HTML parsing in Rust
- you want to select elements using CSS selector syntax
- you need a well-maintained, widely downloaded scraping library for Rust

## When to avoid
- you need to fetch pages over HTTP (pair it with an HTTP client)
- you need JavaScript rendering or dynamic content
- you are parsing XML rather than HTML

## Facets
- artifact type: library
- maturity: active
- function: parser, web-scraping, developer-tools
- domain: web-development, parsers, crawlers
- platform: rust, cross-platform
- tags: html-parsing, css-selectors, html5ever, servo, dom

## Member repositories
- rust-scraper/scraper (main) score 89

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:50.377719+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-30T02:33:08.110493+00:00, confidence not recorded.
  - readme: https://github.com/rust-scraper/scraper (fetched 2026-08-28T04:06:50.377719+00:00, sha 9d3b05e56384)
  - homepage: https://docs.rs/scraper (fetched 2026-08-29T10:13:44.575039+00:00, sha 99ca7044db97)
  - site_page: https://docs.rs/about/redirections (fetched 2026-08-29T10:13:44.595293+00:00, sha 1b1efd93105f)
  - site_page: https://docs.rs/ (fetched 2026-08-29T10:13:44.582699+00:00, sha 38444eb0fe60)
  - site_page: https://docs.rs/crate/scraper/latest (fetched 2026-08-29T10:13:44.585250+00:00, sha f0b4d52c4acd)
  - site_page: https://docs.rs/crate/scraper/latest/features (fetched 2026-08-29T10:13:44.587220+00:00, sha 6be540b0f352)
  - site_page: https://docs.rs/about (fetched 2026-08-29T10:13:44.588823+00:00, sha 29ab7986fbf5)
  - site_page: https://docs.rs/about/badges (fetched 2026-08-29T10:13:44.590245+00:00, sha 6588cac258af)
  - site_page: https://docs.rs/about/builds (fetched 2026-08-29T10:13:44.591924+00:00, sha 811231ca4680)
  - site_page: https://docs.rs/about/metadata (fetched 2026-08-29T10:13:44.593662+00:00, sha 0dcdccb2b2b2)
- Data as of 2026-08-30T08:39:29.467469+00:00.
