python-cssselect/README.en.md

26 lines
910 B
Markdown
Raw Normal View History

2020-02-23 00:43:06 +08:00
===================================
cssselect: CSS Selectors for Python
===================================
2020-02-23 00:28:54 +08:00
2020-02-23 00:43:06 +08:00
*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.
2020-02-23 00:28:54 +08:00
2020-02-23 00:43:06 +08:00
This module used to live inside of lxml as ``lxml.cssselect`` before it was
extracted as a stand-alone project.
2020-02-23 00:28:54 +08:00
2020-02-23 00:43:06 +08:00
.. _CSS3 Selectors: https://www.w3.org/TR/css3-selectors/
.. _XPath 1.0: https://www.w3.org/TR/xpath/
.. _lxml: http://lxml.de/
2020-02-23 00:28:54 +08:00
2020-02-23 00:43:06 +08:00
Quick facts:
2020-02-23 00:28:54 +08:00
2020-02-23 00:43:06 +08:00
* 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``