Description
Match CSS selectors against ElementTree-style document structures in Python. It helps rendering, scraping, and document tools find elements using web-style selector rules.
This is a library for other programs, not a browser. Selector matching depends on the parsed document tree, so tools should handle malformed HTML, namespaces, and untrusted input deliberately.