# rushter/selectolax

Python binding to Modest and Lexbor engines. Fast HTML5 parser with CSS selectors for Python.

Repository: https://github.com/rushter/selectolax
Canonical: https://ross.abutalabs.com/products/selectolax
Homepage: https://selectolax.readthedocs.io/en/latest/index.html
Language: Cython
License: MIT
License Family: permissive
Topics: python, html5, css, web-scraping, parser, html, crawler, scraper
Last push: 2026-07-15T07:01:49+00:00

## Health v2 (maintenance only)
Score: 94/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 92, release rhythm 93, longevity 100
- inputs: {"age_days": 3202, "days_push": 49, "days_rel": 49, "gap_med": 19, "n_releases_24m": 22}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1665, forks 91 (observed 2026-08-28T04:05:19.018224+00:00)

## What it is
Selectolax is a fast Python HTML5 parser library written in Cython, binding to the Modest and Lexbor parsing engines. It provides CSS selector support for querying and extracting data from HTML documents with high performance.

## Use cases
- parse html from web scraping responses
- extract text and attributes from html documents
- query html with css selectors in python
- fast html parsing for crawlers
- replace beautifulsoup for faster parsing
- scrape product data from web pages

## When to choose
- you need very fast HTML parsing in Python
- you want CSS selector support without a heavy dependency like lxml
- you are building a web scraper or crawler that processes many pages
- BeautifulSoup is too slow for your workload

## When to avoid
- you need to parse malformed HTML with lenient error recovery
- you need JavaScript rendering or DOM manipulation beyond parsing
- you need XPath support rather than CSS selectors

## Facets
- artifact type: library
- maturity: active
- function: parser, web-scraping
- domain: web-development, crawlers, developer-tools
- platform: python, cross-platform
- tags: html5-parsing, css-selectors, cython, modest-engine, lexbor, fast-parsing

## Member repositories
- rushter/selectolax (main) score 94

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:19.018224+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-30T03:44:27.167721+00:00, confidence not recorded.
  - readme: https://github.com/rushter/selectolax (fetched 2026-08-28T04:05:19.018224+00:00, sha e81d9101c140)
- Data as of 2026-08-30T08:39:29.467469+00:00.
