File: README.rst

package info (click to toggle)
python-cssselect2 0.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 308 kB
  • sloc: python: 1,155; sh: 14; makefile: 13
file content (28 lines) | stat: -rw-r--r-- 1,132 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
cssselect2: CSS selectors for Python ElementTree
################################################

cssselect2 is a straightforward implementation of `CSS3 Selectors`_ for markup
documents (HTML, XML, etc.) that can be read by `ElementTree`_-like parsers
(including cElementTree, lxml_, html5lib_, 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.

.. _ElementTree: http://docs.python.org/3/library/xml.etree.elementtree.html
.. _CSS3 Selectors: http://www.w3.org/TR/2011/REC-css3-selectors-20110929/
.. _lxml: http://lxml.de/
.. _html5lib: https://github.com/html5lib/html5lib-python
.. _cssselect: http://packages.python.org/cssselect/
.. _XPath: http://www.w3.org/TR/xpath/


Quick facts:

* Free software: BSD licensed
* Compatible with Python 3.5+
* Latest documentation: http://cssselect2.readthedocs.io/
* Source, issues and pull requests `on Github
  <https://github.com/Kozea/cssselect2/>`_
* Releases `on PyPI <http://pypi.python.org/pypi/cssselect2>`_
* Install with ``pip install cssselect2``