{"id":13634218,"url":"https://github.com/facelessuser/soupsieve","last_synced_at":"2026-01-20T06:06:47.316Z","repository":{"id":33718752,"uuid":"160789418","full_name":"facelessuser/soupsieve","owner":"facelessuser","description":"A modern CSS selector implementation for BeautifulSoup","archived":false,"fork":false,"pushed_at":"2025-02-19T03:48:04.000Z","size":5380,"stargazers_count":232,"open_issues_count":12,"forks_count":40,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-04-11T09:25:24.473Z","etag":null,"topics":["beautifulsoup","css","css-selector","css4","html","html5","python","soup-sieve","xml"],"latest_commit_sha":null,"homepage":"https://facelessuser.github.io/soupsieve/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/facelessuser.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"facelessuser","custom":["https://www.paypal.me/facelessuser"]}},"created_at":"2018-12-07T07:42:56.000Z","updated_at":"2025-04-11T07:46:52.000Z","dependencies_parsed_at":"2024-02-26T01:48:58.992Z","dependency_job_id":"c9004e33-82ae-4ef1-9d97-79347febd3d3","html_url":"https://github.com/facelessuser/soupsieve","commit_stats":{"total_commits":328,"total_committers":12,"mean_commits":"27.333333333333332","dds":"0.060975609756097615","last_synced_commit":"a8080d97a0355e316981cb0c5c887a861c4244e3"},"previous_names":[],"tags_count":46,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/facelessuser%2Fsoupsieve","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/facelessuser%2Fsoupsieve/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/facelessuser%2Fsoupsieve/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/facelessuser%2Fsoupsieve/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/facelessuser","download_url":"https://codeload.github.com/facelessuser/soupsieve/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248388955,"owners_count":21095488,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["beautifulsoup","css","css-selector","css4","html","html5","python","soup-sieve","xml"],"created_at":"2024-08-01T23:00:59.309Z","updated_at":"2026-01-20T06:06:47.258Z","avatar_url":"https://github.com/facelessuser.png","language":"Python","funding_links":["https://github.com/sponsors/facelessuser","https://www.paypal.me/facelessuser"],"categories":["Web Scraping \u0026 Crawling"],"sub_categories":[],"readme":"[![Donate via PayPal][donate-image]][donate-link]\n[![Build][github-ci-image]][github-ci-link]\n[![Coverage Status][codecov-image]][codecov-link]\n[![PyPI Version][pypi-image]][pypi-link]\n[![PyPI Downloads][pypi-down]][pypi-link]\n[![PyPI - Python Version][python-image]][pypi-link]\n[![License][license-image-mit]][license-link]\n\n# Soup Sieve\n\n## Overview\n\nSoup Sieve is a CSS selector library designed to be used with [Beautiful Soup 4][bs4]. It aims to provide selecting,\nmatching, and filtering using modern CSS selectors. Soup Sieve currently provides selectors from the CSS level 1\nspecifications up through the latest CSS level 4 drafts and beyond (though some are not yet implemented).\n\nSoup Sieve was written with the intent to replace Beautiful Soup's builtin select feature, and as of Beautiful Soup\nversion 4.7.0, it now is :confetti_ball:. Soup Sieve can also be imported in order to use its API directly for\nmore controlled, specialized parsing.\n\nSoup Sieve has implemented most of the CSS selectors up through the latest CSS draft specifications, though there are a\nnumber that don't make sense in a non-browser environment. Selectors that cannot provide meaningful functionality simply\ndo not match anything. Some of the supported selectors are:\n\n- `.classes`\n- `#ids`\n- `[attributes=value]`\n- `parent child`\n- `parent \u003e child`\n- `sibling ~ sibling`\n- `sibling + sibling`\n- `:not(element.class, element2.class)`\n- `:is(element.class, element2.class)`\n- `parent:has(\u003e child)`\n- and [many more](https://facelessuser.github.io/soupsieve/selectors/)\n\n\n## Installation\n\nYou must have Beautiful Soup already installed:\n\n```\npip install beautifulsoup4\n```\n\nIn most cases, assuming you've installed version 4.7.0, that should be all you need to do, but if you've installed via\nsome alternative method, and Soup Sieve is not automatically installed, you can install it directly:\n\n```\npip install soupsieve\n```\n\nIf you want to manually install it from source, first ensure that [`build`](https://pypi.org/project/build/) is\ninstalled:\n\n```\npip install build\n```\n\nThen navigate to the root of the project and build the wheel and install (replacing `\u003cver\u003e` with the current version):\n\n```\npython -m build -w\npip install dist/soupsieve-\u003cver\u003e-py3-none-any.whl\n```\n\n## Documentation\n\nDocumentation is found here: https://facelessuser.github.io/soupsieve/.\n\n## License\n\nMIT\n\n[bs4]: https://beautiful-soup-4.readthedocs.io/en/latest/#\n\n[github-ci-image]: https://github.com/facelessuser/soupsieve/workflows/build/badge.svg\n[github-ci-link]: https://github.com/facelessuser/soupsieve/actions?query=workflow%3Abuild+branch%3Amain\n[codecov-image]: https://img.shields.io/codecov/c/github/facelessuser/soupsieve/master.svg?logo=codecov\u0026logoColor=aaaaaa\u0026labelColor=333333\n[codecov-link]: https://codecov.io/github/facelessuser/soupsieve\n[pypi-image]: https://img.shields.io/pypi/v/soupsieve.svg?logo=pypi\u0026logoColor=aaaaaa\u0026labelColor=333333\n[pypi-down]: https://img.shields.io/pypi/dm/soupsieve.svg?logo=pypi\u0026logoColor=aaaaaa\u0026labelColor=333333\n[pypi-link]: https://pypi.python.org/pypi/soupsieve\n[python-image]: https://img.shields.io/pypi/pyversions/soupsieve?logo=python\u0026logoColor=aaaaaa\u0026labelColor=333333\n[license-image-mit]: https://img.shields.io/badge/license-MIT-blue.svg?labelColor=333333\n[license-link]: https://github.com/facelessuser/soupsieve/blob/main/LICENSE.md\n[donate-image]: https://img.shields.io/badge/Donate-PayPal-3fabd1?logo=paypal\n[donate-link]: https://www.paypal.me/facelessuser\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffacelessuser%2Fsoupsieve","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffacelessuser%2Fsoupsieve","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffacelessuser%2Fsoupsieve/lists"}