You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
1.5 KiB

4 years ago
  1. ===================================
  2. cssselect: CSS Selectors for Python
  3. ===================================
  4. .. image:: https://img.shields.io/pypi/v/cssselect.svg
  5. :target: https://pypi.python.org/pypi/cssselect
  6. :alt: PyPI Version
  7. .. image:: https://img.shields.io/pypi/pyversions/cssselect.svg
  8. :target: https://pypi.python.org/pypi/cssselect
  9. :alt: Supported Python Versions
  10. .. image:: https://img.shields.io/travis/scrapy/cssselect/master.svg
  11. :target: https://travis-ci.org/scrapy/cssselect
  12. :alt: Build Status
  13. .. image:: https://img.shields.io/codecov/c/github/scrapy/cssselect/master.svg
  14. :target: https://codecov.io/github/scrapy/cssselect?branch=master
  15. :alt: Coverage report
  16. *cssselect* parses `CSS3 Selectors`_ and translate them to `XPath 1.0`_
  17. expressions. Such expressions can be used in lxml_ or another XPath engine
  18. to find the matching elements in an XML or HTML document.
  19. This module used to live inside of lxml as ``lxml.cssselect`` before it was
  20. extracted as a stand-alone project.
  21. .. _CSS3 Selectors: https://www.w3.org/TR/css3-selectors/
  22. .. _XPath 1.0: https://www.w3.org/TR/xpath/
  23. .. _lxml: http://lxml.de/
  24. Quick facts:
  25. * Free software: BSD licensed
  26. * Compatible with Python 2.7 and 3.4+
  27. * Latest documentation `on Read the Docs <https://cssselect.readthedocs.io/>`_
  28. * Source, issues and pull requests `on GitHub
  29. <https://github.com/scrapy/cssselect>`_
  30. * Releases `on PyPI <http://pypi.python.org/pypi/cssselect>`_
  31. * Install with ``pip install cssselect``