{"id":13760670,"url":"https://github.com/jakewarren/scrape","last_synced_at":"2026-01-24T12:19:08.737Z","repository":{"id":48780361,"uuid":"156457417","full_name":"jakewarren/scrape","owner":"jakewarren","description":"A command line scraping utility supporting CSS selectors or XPath","archived":false,"fork":false,"pushed_at":"2023-12-25T14:17:26.000Z","size":1695,"stargazers_count":4,"open_issues_count":9,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-19T01:22:41.672Z","etag":null,"topics":["css-selector","css-selectors","scraping-utility","web-scraping","xpath"],"latest_commit_sha":null,"homepage":null,"language":"Go","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/jakewarren.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2018-11-06T22:34:30.000Z","updated_at":"2023-03-05T16:43:09.000Z","dependencies_parsed_at":"2024-01-15T03:57:14.294Z","dependency_job_id":"fc26a626-330f-46c1-87d1-ca53075c4b03","html_url":"https://github.com/jakewarren/scrape","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/jakewarren/scrape","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jakewarren%2Fscrape","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jakewarren%2Fscrape/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jakewarren%2Fscrape/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jakewarren%2Fscrape/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jakewarren","download_url":"https://codeload.github.com/jakewarren/scrape/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jakewarren%2Fscrape/sbom","scorecard":{"id":502726,"data":{"date":"2025-08-11","repo":{"name":"github.com/jakewarren/scrape","commit":"44ac7c80c02d655aaad49f753d2f4967c9d81e6e"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.5,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","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":0,"reason":"Found 0/14 approved changesets -- score normalized to 0","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":"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":"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":"Token-Permissions","score":10,"reason":"GitHub workflow tokens follow principle of least privilege","details":["Info: jobLevel 'actions' permission set to 'read': .github/workflows/codeql.yml:31","Info: jobLevel 'contents' permission set to 'read': .github/workflows/codeql.yml:32","Info: jobLevel 'contents' permission set to 'read': .github/workflows/lint.yml:11","Info: jobLevel 'pull-requests' permission set to 'read': .github/workflows/lint.yml:12","Info: topLevel 'contents' permission set to 'read': .github/workflows/codeql.yml:24","Info: topLevel 'contents' permission set to 'read': .github/workflows/dependency-review.yml:13","Info: topLevel 'contents' permission set to 'read': .github/workflows/lint.yml:6","Info: topLevel 'contents' permission set to 'read': .github/workflows/release.yml:9","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":"Pinned-Dependencies","score":10,"reason":"all dependencies are pinned","details":["Info:   9 out of   9 GitHub-owned GitHubAction dependencies pinned","Info:   6 out of   6 third-party GitHubAction 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":"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":"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT 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":"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":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v1.0.2 not signed: https://api.github.com/repos/jakewarren/scrape/releases/15630243","Warn: release artifact v1.0.1 not signed: https://api.github.com/repos/jakewarren/scrape/releases/15042127","Warn: release artifact v1.0.0 not signed: https://api.github.com/repos/jakewarren/scrape/releases/13864894","Warn: release artifact v1.0.2 does not have provenance: https://api.github.com/repos/jakewarren/scrape/releases/15630243","Warn: release artifact v1.0.1 does not have provenance: https://api.github.com/repos/jakewarren/scrape/releases/15042127","Warn: release artifact v1.0.0 does not have provenance: https://api.github.com/repos/jakewarren/scrape/releases/13864894"],"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":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"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":"SAST","score":7,"reason":"SAST tool detected but not run on all commits","details":["Info: SAST configuration detected: CodeQL","Warn: 0 commits out of 10 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"}},{"name":"Vulnerabilities","score":0,"reason":"14 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2022-0536 / GHSA-39qc-96h7-956f / GHSA-hgr8-6h9x-f7q9","Warn: Project is vulnerable to: GO-2022-0236 / GHSA-h86h-8ppg-mxmh","Warn: Project is vulnerable to: GO-2021-0238 / GHSA-83g2-8m93-v3w7","Warn: Project is vulnerable to: GO-2022-0288","Warn: Project is vulnerable to: GO-2022-0969 / GHSA-69cg-p879-7622","Warn: Project is vulnerable to: GO-2022-1144 / GHSA-xrjj-mj9h-534m","Warn: Project is vulnerable to: GO-2023-1571 / GHSA-vvpx-j8f3-3w6h","Warn: Project is vulnerable to: GO-2023-1988 / GHSA-2wrh-6pvc-2jm9","Warn: Project is vulnerable to: GO-2023-2102 / GHSA-4374-p667-p6c8","Warn: Project is vulnerable to: GHSA-qppj-fm5r-hxr3","Warn: Project is vulnerable to: GO-2024-2687 / GHSA-4v7x-pqxf-cx7m","Warn: Project is vulnerable to: GO-2024-3333","Warn: Project is vulnerable to: GO-2025-3503 / GHSA-qxp5-gwg8-xv66","Warn: Project is vulnerable to: GO-2025-3595 / GHSA-vvgc-356p-c3xw"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-19T22:23:23.786Z","repository_id":48780361,"created_at":"2025-08-19T22:23:23.787Z","updated_at":"2025-08-19T22:23:23.787Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28727509,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-24T10:24:43.181Z","status":"ssl_error","status_checked_at":"2026-01-24T10:24:36.112Z","response_time":89,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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-selector","css-selectors","scraping-utility","web-scraping","xpath"],"created_at":"2024-08-03T13:01:16.259Z","updated_at":"2026-01-24T12:19:08.705Z","avatar_url":"https://github.com/jakewarren.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# scrape\n\n[![Build Status](https://github.com/jakewarren/scrape/workflows/lint/badge.svg)](https://github.com/jakewarren/scrape/actions)\n[![GitHub release](http://img.shields.io/github/release/jakewarren/scrape.svg?style=flat-square)](https://github.com/jakewarren/scrape/releases])\n[![MIT License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](https://github.com/jakewarren/scrape/blob/master/LICENSE)\n[![Go Report Card](https://goreportcard.com/badge/github.com/jakewarren/scrape)](https://goreportcard.com/report/github.com/jakewarren/scrape)\n[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=shields)](http://makeapullrequest.com)\n\n\nA command line scraping utility inspired by [scrape]( https://github.com/jeroenjanssens/data-science-at-the-command-line/blob/master/tools/scrape).\n\n## Features\n\n* Scrape using XPath or CSS selectors\n* Process HTML from a URL, STDIN, or a local file\n* Extract a particular attribute\n\n## Install\n### Option 1: Binary\n\nDownload the latest release from [https://github.com/jakewarren/scrape/releases/latest](https://github.com/jakewarren/scrape/releases/latest)\n\n### Option 2: From source\n\n```\ngo get github.com/jakewarren/scrape\n```\n\n\n## Usage\n\n```\nUsage of scrape:\n  -A, --agent string   user agent string (default \"Mozilla/4.0 (Mozilla/4.0; MSIE 7.0; Windows NT 5.1; SV1; .NET CLR 3.0.04506.30)\")\n  -a, --attr string    attribute to scrape (default \"html\")\n  -c, --css string     css selector\n  -h, --help           usage information\n  -k, --insecure       skip SSL verification\n  -x, --xpath string   xpath query\n```\n\n### Examples:\n\n#### Read from URL:\n```\n❯ scrape -c \"h4 a\" -a href \"https://www.webscraper.io/test-sites/e-commerce/allinone\"\n/test-sites/e-commerce/allinone/product/244\n/test-sites/e-commerce/allinone/product/269\n/test-sites/e-commerce/allinone/product/192\n```\n\n#### Read from STDIN:\n```\n❯ curl -A 'Mozilla/4.0 (Mozilla/4.0; MSIE 7.0; Windows NT 5.1; SV1; .NET CLR 3.0.04506.30)' -s \"https://www.webscraper.io/test-sites/e-commerce/allinone\" | scrape -x \"//h4/a\" -a href\n/test-sites/e-commerce/allinone/product/223\n/test-sites/e-commerce/allinone/product/280\n/test-sites/e-commerce/allinone/product/278\n```\n\n#### Read from file:\n```\n❯ scrape -x \"//h4/a\" /tmp/webscrapetest.html\n\u003ca href=\"/test-sites/e-commerce/allinone/product/223\" class=\"title\" title=\"Aspire E1-510\"\u003eAspire E1-510\u003c/a\u003e\n\u003ca href=\"/test-sites/e-commerce/allinone/product/280\" class=\"title\" title=\"Lenovo V510 Black\"\u003eLenovo V510 Blac...\u003c/a\u003e\n\u003ca href=\"/test-sites/e-commerce/allinone/product/278\" class=\"title\" title=\"Lenovo V510 Black\"\u003eLenovo V510 Blac...\u003c/a\u003e\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjakewarren%2Fscrape","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjakewarren%2Fscrape","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjakewarren%2Fscrape/lists"}