Skip to content
Agents tracked: 506 Releases (7d): 634 Agent status: 3 with issuesSince last limit reset: Claude 15d · Codex 0d For AI agents: Markdown Updated Nov 26, 2026

cssselect

Parse CSS3 selectors and translate them to XPath for HTML/XML querying.

Scraping, browsers and parsingPYPI

GitHubWebsite

1. License

License from PyPI license expression.

github.com/scrapy/cssselect

From the package registry and GitHub, checked daily. Tap a verdict to see its source.How we checkedReport an error

What cssselect does

Parse CSS3 selectors and translate them to XPath for HTML/XML querying.

cssselect popularity

49 / 100
Gid Score, #2064 overall
5.6M
downloads a week, pypi
314
GitHub stars
2
agent projects use it
cssselect: downloads per weekPyPI, cssselect 5,664,511
cssselect: GitHub starsscrapy/cssselect 314

Gid Score measures public popularity and activity, not quality. How the Gid Score is calculated

How cssselect is used

  • cssselect is a dependency in 2 of the 6,258 public GitHub projects set up for AI coding agents that we scanned, too few to describe it from them alone. Our scan also samples projects by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750); counting those, it appears in 106 projects, and what it is used with below comes from all of them.
  • The most used alternative in our scan is soupsieve (19 projects).
  • Projects that use it most often also use lxml (99.1%), attrs (93.4%), Beautiful Soup (93.4%).

Often used with

In 99.1% of its projects
In 93.4% of its projects
In 93.4% of its projects
In 93.4% of its projects
In 92.5% of its projects
In 92.5% of its projects
In 91.5% of its projects
In 90.6% of its projects

More about cssselect

More in Scraping, browsers and parsing

Alternatives

cssselect This page

BSD-3-ClauseGid 495.6M/wk

soupsieve

CSS selector implementation for BeautifulSoup to query HTML and XML documents.

MITGid 6385.3M/wk

Compare cssselect with another tool

Get started

Install it.

pip install cssselect

No step-by-step start for cssselect yet: we have not written its hand-checked card.