Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
42 lines (27 sloc) 1.04 KB


Installing cssselect2 with pip should Just Work:

pip install cssselect2

This will also automatically install cssselect2’s only dependency, tinycss2. cssselect2 and tinycss2 both only contain Python code and should work on any Python implementation, although they’re only tested on CPython.

Basic Example

Here is a classical cssselect2 workflow:

.. literalinclude:: ../

.. module:: cssselect2
.. autoclass:: Matcher
.. autofunction:: compile_selector_list
.. autoclass:: ElementWrapper
.. autoclass:: SelectorError