26 lines
910 B
Markdown
26 lines
910 B
Markdown
===================================
|
|
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.2+
|
|
* Latest documentation `on python.org <https://pythonhosted.org/cssselect/>`_
|
|
* 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``
|