--- id: cssselect version: "1.5.0" license: BSD-3-Clause license_treatment: permissive maintenance: active --- # cssselect — cssselect parses CSS3 Selectors and translates them to XPath 1.0 License: permissive · Maintenance: active · Popularity: top 1,000 on PyPI ## Install pip install cssselect uv add cssselect poetry add cssselect ## Description =================================== cssselect: CSS Selectors for Python =================================== .. image:: https://img.shields.io/pypi/v/cssselect.svg :target: https://pypi.python.org/pypi/cssselect :alt: PyPI Version .. image:: https://img.shields.io/pypi/pyversions/cssselect.svg :target: https://pypi.python.org/pypi/cssselect :alt: Supported Python Versions .. image:: https://github.com/scrapy/cssselect/actions/workflows/tests-ubuntu.yml/badge.svg :target: https://github.com/scrapy/cssselect/actions/workflows/tests-ubuntu.yml :alt: Tests .. image:: https://img.shields.io/codecov/c/github/scrapy/cssselect/master.svg :target: https://codecov.io/github/scrapy/cssselect?branch=master :alt: Coverage report **cssselect** is a BSD-licensed Python library to parse `CSS3 selectors`_ and translate them to `XPath 1.0`_ expressions. `XPath 1.0`_ expressions can be used in lxml_ or another XPath engine to find the matching elements in an XML or HTML document. Find the cssselect online documentation at https://cssselect.readthedocs.io. Quick facts: * Source, issues and pull requests `on GitHub `_ * Releases... ## AI interpretation — verify before relying cssselect parses CSS3 selectors and translates them to XPath 1.0 expressions, enabling you to find matching elements in XML or HTML documents using familiar CSS selector syntax. Verdict: cssselect is a lightweight, well-maintained library with zero dependencies and no known vulnerabilities. Its permissive BSD-3-Clause license and active development make it a reliable choice for converting CSS selectors to XPath in web scraping or XML processing workflows. [View on SkillFed](https://skillfed.io/packages/cssselect) · [View on PyPI](https://pypi.org/project/cssselect/)