cssselect

cssselect parses CSS3 Selectors and translates them to XPath 1.0


Keywords
css, python, selectors
License
BSD-3-Clause
Install
pip install cssselect==1.1.0

Documentation

cssselect: CSS Selectors for Python

PyPI Version Supported Python Versions Tests Coverage report

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
  • Releases on PyPI
  • Install with pip install cssselect