CMD + K

cssselect

Community

cssselect parses CSS3 Selectors and translates them to XPath 1.0

Installation

To install this package, run one of the following:

Conda
$conda install rolando::cssselect
Pip
$pip install -i https://pypi.anaconda.org/rolando/simple cssselect

Usage Tracking

1.0.1
0.9.1
2 / 8 versions selected
Downloads (Last 6 months): 0

Description

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

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.

.. _CSS3 Selectors: https://www.w3.org/TR/css3-selectors/ .. _XPath 1.0: https://www.w3.org/TR/xpath/ .. _lxml: http://lxml.de/

Quick facts:

  • Free software: BSD licensed
  • Compatible with Python 2.6+ and 3.3+
  • Latest documentation on Read the Docs <https://cssselect.readthedocs.io/>_
  • Source, issues and pull requests on Github <https://github.com/scrapy/cssselect>_
  • Releases on PyPI <http://pypi.python.org/pypi/cssselect>_
  • Install with pip install cssselect

About

Summary

cssselect parses CSS3 Selectors and translates them to XPath 1.0

Last Updated

Feb 8, 2017 at 03:28

License

BSD License

Total Downloads

284