cssselect2

CSS selectors for Python ElementTree


Keywords
css, elementtree, python
License
BSD-3-Clause
Install
pip install cssselect2==0.7.0

Documentation

cssselect2: CSS selectors for Python ElementTree

cssselect2 is a straightforward implementation of CSS3 Selectors for ElementTree-compatible documents (including cElementTree, lxml, etc.) Unlike cssselect, it does not translate selectors to XPath and therefore does not have all the correctness corner cases that are hard or impossible to fix in cssselect.

Quick facts:

  • Free software: BSD licensed
  • Compatible with Python 2.6+ and 3.2+
  • Latest documentation on python.org
  • Source, issues and pull requests on Github
  • Releases on PyPI
  • Install with pip install cssselect2