cssselect2
cssselect2 is a straightforward implementation of CSS4 Selectors for markup documents (HTML, XML, etc.) that can be read by ElementTree-like parsers (including cElementTree, lxml, html5lib, etc.)
Free software: BSD license
For Python 3.8+, tested on CPython and PyPy
Documentation: https://doc.courtbouillon.org/cssselect2
Changelog: https://github.com/Kozea/cssselect2/releases
Code, issues, tests: https://github.com/Kozea/cssselect2
Code of conduct: https://www.courtbouillon.org/code-of-conduct.html
Professional support: https://www.courtbouillon.org
Donation: https://opencollective.com/courtbouillon
cssselect2 has been created and developed by Kozea (https://kozea.fr/). Professional support, maintenance and community management is provided by CourtBouillon (https://www.courtbouillon.org/).
Copyrights are retained by their contributors, no copyright assignment is required to contribute to cssselect2. Unless explicitly stated otherwise, any contribution intentionally submitted for inclusion is licensed under the BSD 3-clause license, without any additional terms or conditions. For full authorship information, see the version control history.
- First Steps
- API Reference
Matcher
compile_selector_list()
ElementWrapper
ElementWrapper.ancestors
ElementWrapper.classes
ElementWrapper.etree_children
ElementWrapper.etree_element
ElementWrapper.etree_siblings
ElementWrapper.from_html_root()
ElementWrapper.from_xml_root()
ElementWrapper.id
ElementWrapper.index
ElementWrapper.iter_ancestors()
ElementWrapper.iter_children()
ElementWrapper.iter_next_siblings()
ElementWrapper.iter_previous_siblings()
ElementWrapper.iter_siblings()
ElementWrapper.iter_subtree()
ElementWrapper.lang
ElementWrapper.local_name
ElementWrapper.matches()
ElementWrapper.namespace_url
ElementWrapper.parent
ElementWrapper.previous
ElementWrapper.previous_siblings
ElementWrapper.query()
ElementWrapper.query_all()
SelectorError
CompiledSelector