Permalink
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

Installation

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:: ../example.py

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