---
title: "cssselect | pypx"
description: "cssselect parses CSS3 Selectors and translates them to XPath 1.0"
canonical_url: "https://pypx.app/packages/cssselect"
meta:
  "og:description": "cssselect parses CSS3 Selectors and translates them to XPath 1.0"
  "og:image": "https://pypx.app/_og/d/h_630%2Cc_PackageCard%2Cname_cssselect%2Cversion_1.6.0%2Csummary_cssselect%2Bparses%2BCSS3%2BSelectors%2Band%2Btranslates%2Bthem%2Bto%2BXPath%2B1.0%2Clicense_BSD-3-Clause%2Cp_Ii9wYWNrYWdlcy9jc3NzZWxlY3Qi%2Cs_5Rhdw0Yh2PXM3fP2.png"
  "og:image:height": "630"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "cssselect 1.6.0"
  "twitter:image": "https://pypx.app/_og/d/h_630%2Cc_PackageCard%2Cname_cssselect%2Cversion_1.6.0%2Csummary_cssselect%2Bparses%2BCSS3%2BSelectors%2Band%2Btranslates%2Bthem%2Bto%2BXPath%2B1.0%2Clicense_BSD-3-Clause%2Cp_Ii9wYWNrYWdlcy9jc3NzZWxlY3Qi%2Cs_5Rhdw0Yh2PXM3fP2.png"
---

> Index of every page on this site: [llms.txt](https://pypx.app/llms.txt)

# **cssselect**

v1.6.0

cssselect parses CSS3 Selectors and translates them to XPath 1.0

22 KB Python 3.11+ py3-none-anyBSD-3-Clause

[** Diff **](https://pypx.app/packages/cssselect/diff)

`$ uv add cssselect`

===================================

# cssselect: CSS Selectors for Python

![PyPI Version](https://img.shields.io/pypi/v/cssselect.svg) ![Supported Python Versions](https://img.shields.io/pypi/pyversions/cssselect.svg) ![Tests](https://github.com/scrapy/cssselect/actions/workflows/tests-ubuntu.yml/badge.svg) ![Coverage report](https://img.shields.io/codecov/c/github/scrapy/cssselect/master.svg)

**cssselect** is a BSD-licensed Python library to parse `CSS3 selectors`\_ and translate them to `XPath 1.0`\_ expressions.

`XPath 1.0`\_ expressions can be used in lxml\_ or another XPath engine to find the matching elements in an XML or HTML document.

Find the cssselect online documentation at https://cssselect.readthedocs.io.

Quick facts:

- Source, issues and pull requests \`on GitHub

\<https://github.com/scrapy/cssselect>\`\_

- Releases [on PyPI](https://pypi.org/project/cssselect/)
- Install with pip install cssselect

## **Details **

<dl>

<dt>Version</dt>
<dd>1.6.0</dd>

<dt>License</dt>
<dd>BSD-3-Clause</dd>

<dt>Python</dt>
<dd>&gt;=3.11</dd>

<dt>Maintainer</dt>
<dd>Ian Bicking &lt;ianb@colorstudy.com&gt;</dd></dl>

## **Links**

- [Homepage](https://github.com/scrapy/cssselect)
- [View on PyPI](https://pypi.org/project/cssselect/)

## **Release Cadence **

**3**

releases in the past year

avg 252 days between releases

## **Maintainers **

- Ian Bicking · [ianb@colorstudy.com](mailto:ianb@colorstudy.com)

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://pypx.app/#website","@type":"WebSite","description":"The Python Package Index, reimagined. Fast search, dependency insights, download trends, and changelogs — all in one place.","name":"pypx","url":"https://pypx.app/"},{"@id":"https://pypx.app/packages/cssselect#webpage","@type":"WebPage","description":"cssselect parses CSS3 Selectors and translates them to XPath 1.0","name":"cssselect","url":"https://pypx.app/packages/cssselect","isPartOf":{"@id":"https://pypx.app/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://pypx.app/packages/cssselect"]}]},{"@id":"https://pypx.app/packages/cssselect#/schema/software-application/1","@type":"SoftwareApplication","applicationCategory":"DeveloperApplication","description":"cssselect parses CSS3 Selectors and translates them to XPath 1.0","license":"BSD-3-Clause","name":"cssselect","softwareVersion":"1.6.0"}]}
```

## Sitemap

See the full [sitemap](https://pypx.app/sitemap.md) for all pages.
