{"id":13461667,"url":"https://github.com/scrapy/parsel","last_synced_at":"2026-10-19T13:48:16.997Z","repository":{"id":30969532,"uuid":"34527721","full_name":"scrapy/parsel","owner":"scrapy","description":"Parsel lets you extract data from XML/HTML documents using XPath or CSS selectors","archived":false,"fork":false,"pushed_at":"2026-10-13T10:34:11.000Z","size":1015,"stargazers_count":1362,"open_issues_count":17,"forks_count":177,"subscribers_count":34,"default_branch":"master","last_synced_at":"2026-10-15T21:19:40.188Z","etag":null,"topics":["css","hacktoberfest","lxml","python","scraping","selectors","xml","xpath"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/scrapy.png","metadata":{"files":{"readme":"README.rst","changelog":"NEWS","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"claude":null,"gemini":null,"cursor":null,"copilot":null,"dco":null,"cla":null,"disclosure":null}},"created_at":"2015-04-24T15:53:36.000Z","updated_at":"2026-10-13T09:44:46.000Z","dependencies_parsed_at":"2026-08-27T03:29:17.332Z","dependency_job_id":null,"html_url":"https://github.com/scrapy/parsel","commit_stats":{"total_commits":629,"total_committers":51,"mean_commits":"12.333333333333334","dds":0.8282988871224165,"last_synced_commit":"54678b5425650a37780b2ef85225c2e45fe88e3d"},"previous_names":[],"tags_count":27,"template":false,"template_full_name":null,"purl":"pkg:github/scrapy/parsel","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scrapy%2Fparsel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scrapy%2Fparsel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scrapy%2Fparsel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scrapy%2Fparsel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scrapy","download_url":"https://codeload.github.com/scrapy/parsel/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scrapy%2Fparsel/sbom","scorecard":{"id":806096,"data":{"date":"2025-08-11","repo":{"name":"github.com/scrapy/parsel","commit":"04798b362698fdb4b56d9041973f228ffdbaa6cc"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":5.1,"checks":[{"name":"Maintained","score":10,"reason":"9 commit(s) and 5 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":9,"reason":"Found 11/12 approved changesets -- score normalized to 9","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/checks.yml:1","Warn: no topLevel permission defined: .github/workflows/publish.yml:1","Warn: no topLevel permission defined: .github/workflows/tests-macos.yml:1","Warn: no topLevel permission defined: .github/workflows/tests-ubuntu.yml:1","Warn: no topLevel permission defined: .github/workflows/tests-windows.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/checks.yml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/scrapy/parsel/checks.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/checks.yml:31: update your workflow using https://app.stepsecurity.io/secureworkflow/scrapy/parsel/checks.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish.yml:10: update your workflow using https://app.stepsecurity.io/secureworkflow/scrapy/parsel/publish.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/scrapy/parsel/publish.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests-macos.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/scrapy/parsel/tests-macos.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests-macos.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/scrapy/parsel/tests-macos.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/tests-macos.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/scrapy/parsel/tests-macos.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests-ubuntu.yml:34: update your workflow using https://app.stepsecurity.io/secureworkflow/scrapy/parsel/tests-ubuntu.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests-ubuntu.yml:43: update your workflow using https://app.stepsecurity.io/secureworkflow/scrapy/parsel/tests-ubuntu.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/tests-ubuntu.yml:54: update your workflow using https://app.stepsecurity.io/secureworkflow/scrapy/parsel/tests-ubuntu.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests-windows.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/scrapy/parsel/tests-windows.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests-windows.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/scrapy/parsel/tests-windows.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/tests-windows.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/scrapy/parsel/tests-windows.yml/master?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/checks.yml:38","Warn: pipCommand not pinned by hash: .github/workflows/publish.yml:27","Warn: pipCommand not pinned by hash: .github/workflows/tests-macos.yml:22","Warn: pipCommand not pinned by hash: .github/workflows/tests-ubuntu.yml:50","Info:   0 out of  10 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   3 third-party GitHubAction dependencies pinned","Info:   0 out of   4 pipCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: BSD 3-Clause \"New\" or \"Revised\" License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":9,"reason":"1 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2019-41 / GHSA-qfc5-mcwq-26q8"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 29 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-23T11:48:18.734Z","repository_id":30969532,"created_at":"2025-08-23T11:48:18.735Z","updated_at":"2025-08-23T11:48:18.735Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":344836268,"owners_count":38330145,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-10-03T21:59:58.778Z","status":"online","status_checked_at":"2026-10-15T02:00:06.843Z","response_time":105,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["css","hacktoberfest","lxml","python","scraping","selectors","xml","xpath"],"created_at":"2024-07-31T11:00:51.590Z","updated_at":"2026-10-19T13:48:16.982Z","avatar_url":"https://github.com/scrapy.png","language":"Python","funding_links":[],"categories":["Python","🧩 HTML \u0026 XML Parsing","Web Scraping \u0026 Crawling","\u003ca name=\"data-extraction\"\u003e\u003c/a\u003e⛏️ Data Extraction"],"sub_categories":["Ruby"],"readme":"======\nParsel\n======\n\n.. image:: https://github.com/scrapy/parsel/actions/workflows/tests-ubuntu.yml/badge.svg\n   :target: https://github.com/scrapy/parsel/actions/workflows/tests-ubuntu.yml\n   :alt: Tests\n\n.. image:: https://img.shields.io/pypi/pyversions/parsel.svg\n   :target: https://pypi.python.org/pypi/parsel\n   :alt: Supported Python versions\n\n.. image:: https://img.shields.io/pypi/v/parsel.svg\n   :target: https://pypi.python.org/pypi/parsel\n   :alt: PyPI Version\n\n.. image:: https://img.shields.io/codecov/c/github/scrapy/parsel/master.svg\n   :target: https://codecov.io/github/scrapy/parsel?branch=master\n   :alt: Coverage report\n\n\nParsel is a BSD-licensed Python_ library to extract data from HTML_, JSON_, and\nXML_ documents.\n\nIt supports:\n\n-   CSS_ and XPath_ expressions for HTML and XML documents\n\n-   JMESPath_ and JSONPath_ expressions for JSON documents\n\n-   `Regular expressions`_\n\nFind the Parsel online documentation at https://parsel.readthedocs.org.\n\nExample (`open online demo`_):\n\n.. code-block:: pycon\n\n    \u003e\u003e\u003e from parsel import Selector\n    \u003e\u003e\u003e text = \"\"\"\n    ... \u003chtml\u003e\n    ...     \u003cbody\u003e\n    ...         \u003ch1\u003eHello, Parsel!\u003c/h1\u003e\n    ...         \u003cul\u003e\n    ...             \u003cli\u003e\u003ca href=\"http://example.com\"\u003eLink 1\u003c/a\u003e\u003c/li\u003e\n    ...             \u003cli\u003e\u003ca href=\"http://scrapy.org\"\u003eLink 2\u003c/a\u003e\u003c/li\u003e\n    ...         \u003c/ul\u003e\n    ...         \u003cscript type=\"application/json\"\u003e{\"a\": [\"b\", \"c\"]}\u003c/script\u003e\n    ...     \u003c/body\u003e\n    ... \u003c/html\u003e\"\"\"\n    \u003e\u003e\u003e selector = Selector(text=text)\n    \u003e\u003e\u003e selector.css(\"h1::text\").get()\n    'Hello, Parsel!'\n    \u003e\u003e\u003e selector.xpath(\"//h1/text()\").re(r\"\\w+\")\n    ['Hello', 'Parsel']\n    \u003e\u003e\u003e for li in selector.css(\"ul \u003e li\"):\n    ...     print(li.xpath(\".//@href\").get())\n    ...\n    http://example.com\n    http://scrapy.org\n    \u003e\u003e\u003e selector.css(\"script::text\").jmespath(\"a\").get()\n    'b'\n    \u003e\u003e\u003e selector.css(\"script::text\").jmespath(\"a\").getall()\n    ['b', 'c']\n\n.. _CSS: https://en.wikipedia.org/wiki/Cascading_Style_Sheets\n.. _HTML: https://en.wikipedia.org/wiki/HTML\n.. _JMESPath: https://jmespath.org/\n.. _JSON: https://en.wikipedia.org/wiki/JSON\n.. _JSONPath: https://datatracker.ietf.org/doc/html/rfc9535\n.. _open online demo: https://colab.research.google.com/drive/149VFa6Px3wg7S3SEnUqk--TyBrKplxCN#forceEdit=true\u0026sandboxMode=true\n.. _Python: https://www.python.org/\n.. _regular expressions: https://docs.python.org/library/re.html\n.. _XML: https://en.wikipedia.org/wiki/XML\n.. _XPath: https://en.wikipedia.org/wiki/XPath\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscrapy%2Fparsel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscrapy%2Fparsel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscrapy%2Fparsel/lists"}