cssselect parses CSS3 Selectors and translates them to XPath 1.0
Project Links
Meta
Author: Ian Bicking
Maintainer: Paul Tremberth
Requires Python: >=3.10
Classifiers
Development Status
- 4 - Beta
Intended Audience
- Developers
Programming Language
- Python :: 3
- Python :: 3.10
- Python :: 3.11
- Python :: 3.12
- Python :: 3.13
- Python :: 3.14
- Python :: Implementation :: CPython
- Python :: Implementation :: PyPy
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:
1.4.0
Jan 29, 2026
1.3.0
Mar 10, 2025
1.2.0
Oct 27, 2022
1.1.0
Aug 09, 2019
1.0.3
Dec 27, 2017
1.0.1
Jan 10, 2017
1.0.0
Oct 21, 2016
0.9.2
Jun 15, 2016
0.9.1
Oct 17, 2013
0.9
Oct 11, 2013
0.8
Mar 15, 2013
0.7.1
Jun 14, 2012
0.7
Jun 14, 2012
0.6.1
Apr 25, 2012
0.6
Apr 24, 2012
0.5
Apr 20, 2012
0.4
Apr 18, 2012
0.3
Apr 17, 2012
0.2
Apr 16, 2012
0.1
Apr 13, 2012
Wheel compatibility matrix
Files in release
No dependencies