CSS Selectors for Python
Latest commit 3036cba Mar 2, 2017 @kmike kmike committed on GitHub Merge pull request #74 from scop/py36esc
Python 3.6 invalid escape sequence deprecation fix


cssselect: CSS Selectors for Python

cssselect parses CSS3 Selectors and translate them to XPath 1.0 expressions. Such expressions can be used in lxml or another XPath engine to find the matching elements in an XML or HTML document.

This module used to live inside of lxml as lxml.cssselect before it was extracted as a stand-alone project.

Quick facts:

  • Free software: BSD licensed
  • Compatible with Python 2.6+ and 3.3+
  • Latest documentation on Read the Docs
  • Source, issues and pull requests on Github
  • Releases on PyPI
  • Install with pip install cssselect