{"id":37747801,"url":"https://github.com/promptapi/scraper-pkg","last_synced_at":"2026-01-16T14:18:46.657Z","repository":{"id":57138262,"uuid":"294591033","full_name":"promptapi/scraper-pkg","owner":"promptapi","description":"NPM package for Prompt API's Scraper API","archived":false,"fork":false,"pushed_at":"2020-10-06T05:17:03.000Z","size":26,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-10-04T19:43:31.000Z","etag":null,"topics":["api-marketplace","css-selector","css-selector-parser","data-extraction","image-scraper","javascript","javascript-library","module","nodejs","npm-package","promptapi","scraper-api","web-scraper","web-scraping"],"latest_commit_sha":null,"homepage":"https://promptapi.com/marketplace/description/bincheck-api","language":"JavaScript","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/promptapi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-09-11T04:08:48.000Z","updated_at":"2021-10-24T03:49:36.000Z","dependencies_parsed_at":"2022-08-25T10:01:22.694Z","dependency_job_id":null,"html_url":"https://github.com/promptapi/scraper-pkg","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/promptapi/scraper-pkg","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/promptapi%2Fscraper-pkg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/promptapi%2Fscraper-pkg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/promptapi%2Fscraper-pkg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/promptapi%2Fscraper-pkg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/promptapi","download_url":"https://codeload.github.com/promptapi/scraper-pkg/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/promptapi%2Fscraper-pkg/sbom","scorecard":{"id":746918,"data":{"date":"2025-08-11","repo":{"name":"github.com/promptapi/scraper-pkg","commit":"5bf7fffeead23ed9a55a857c9017fe7d98579d58"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2,"checks":[{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Code-Review","score":0,"reason":"Found 0/15 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":"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":-1,"reason":"no workflows found","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":"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":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"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":-1,"reason":"no dependencies found","details":null,"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":"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":-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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENCE:0","Info: FSF or OSI recognized license: MIT License: LICENCE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"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":2,"reason":"8 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-4w2v-q235-vp99","Warn: Project is vulnerable to: GHSA-cph5-m8f7-6c5x","Warn: Project is vulnerable to: GHSA-wf5p-g6vw-rhxx","Warn: Project is vulnerable to: GHSA-jr5f-v2jv-69x6","Warn: Project is vulnerable to: GHSA-74fj-2j2h-c42q","Warn: Project is vulnerable to: GHSA-pw2r-vq6v-hr8c","Warn: Project is vulnerable to: GHSA-jchw-25xp-jwwc","Warn: Project is vulnerable to: GHSA-cxjh-pqwp-8mfp"],"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-22T19:05:44.061Z","repository_id":57138262,"created_at":"2025-08-22T19:05:44.061Z","updated_at":"2025-08-22T19:05:44.061Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28479369,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T11:59:17.896Z","status":"ssl_error","status_checked_at":"2026-01-16T11:55:55.838Z","response_time":107,"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":["api-marketplace","css-selector","css-selector-parser","data-extraction","image-scraper","javascript","javascript-library","module","nodejs","npm-package","promptapi","scraper-api","web-scraper","web-scraping"],"created_at":"2026-01-16T14:18:46.143Z","updated_at":"2026-01-16T14:18:46.652Z","avatar_url":"https://github.com/promptapi.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Node](https://img.shields.io/badge/node-14.9.0-green.svg)\n[![npm version](https://badge.fury.io/js/%40promptapi%2Fscraper-pkg.svg)](https://badge.fury.io/js/%40promptapi%2Fscraper-pkg)\n\n# Prompt API - Scraper - Node Package\n\n`@promptapi/scraper-pkg` is a simple JavaScript wrapper for [scraper-api][scraper-api].\n\n## Requirements\n\n1. You need to signup for [Prompt API][promptapi-signup]\n1. You need to subscribe [scraper-api][scraper-api], test drive is **free!!!**\n1. You need to set `PROMPTAPI_TOKEN` environment variable after subscription.\n\nthen;\n\n```bash\n$ npm install @promptapi/scraper-pkg\n```\n\nor, install from GitHub registry;\n\n```bash\n$ npm install @promptapi/scraper-pkg@0.1.6\n```\n\n---\n\n## Example Usage\n\nBasic scrape feature:\n\n```javascript\nconst promptapi = require('@promptapi/scraper-pkg')\nparams = {}\npromptapi.scraper('https://pypi.org/classifiers/', params).then(result =\u003e {\n  if(result.error){\n    console.log(result.error)\n  } else {\n    console.log(result.data); // your scraped data...\n    console.log(result.headers);\n    console.log(result.url);\n\n    promptapi.save('/tmp/data.html', result.data) // save result\n  }\n})\n```\n\nOutput:\n\n    // result.data\n    \u003c!DOCTYPE html\u003e\n    \u003chtml lang=\"en\" dir=\"ltr\"\u003e\n      \u003chead\u003e\n        \u003cmeta charset=\"utf-8\"\u003e\n        \u003cmeta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\"\u003e\n        \u003cmeta name=\"viewport\" content=\"width=device-width, initial-scale=1\"\u003e\n        \n        \u003cmeta name=\"defaultLanguage\" content=\"en\"\u003e\n        \u003cmeta name=\"availableLanguages\" content=\"en, es, fr, ja, pt_BR, uk, el, de, zh_Hans, ru, he\"\u003e\n    :\n    :\n    :\n    \n    // result.headers\n    { 'Content-Length': '322126', ...\n    \n    // result.url\n    https://pypi.org/classifiers/\n    \n    /tmp/data.html saved successfully, written 322126 bytes\n\nYou can add url parameters for extra operations. Valid parameters are:\n\n- `auth_password`: for HTTP Realm auth password\n- `auth_username`: for HTTP Realm auth username\n- `cookie`: URL Encoded cookie header.\n- `country`: 2 character country code. If you wish to scrape from an IP address of a specific country.\n- `referer`: HTTP referer header\n- `selector`: CSS style selector path such as `a.btn div li`. If `selector` is\n  enabled, returning result will be collection of data and saved file will be\n  in `.json` format.\n\n```javascript\nconst promptapi = require('@promptapi/scraper-pkg')\n\nparams = {country: 'EE', selector: 'ul li button[data-clipboard-text]'}\n\npromptapi.scraper('https://pypi.org/classifiers/', params).then(result =\u003e {\n  if(result.error){\n    console.log(result.error)\n  } else {\n    console.log(result.data); // your scraped data...\n    console.log(result.headers);\n    console.log(result.url);\n\n    promptapi.save('/tmp/data.json', result.data)\n  }\n})\n```\n\nOutput :\n\n    // result.data\n    [ '\u003cbutton class=\"button button--small margin-top margin-bottom copy-tooltip copy-tooltip-w\" data-clipboard-text=\"Development Status :: 1 - Planning\" data-tooltip-label=\"Copy to clipboard\" type=\"button\"\u003e\\n Copy\\n\u003c/button\u003e\\n',\n      '\u003cbutton class=\"button button--small margin-top margin-bottom copy-tooltip copy-tooltip-w\" data-clipboard-text=\"Development Status :: 2 - Pre-Alpha\" data-tooltip-label=\"Copy to clipboard\" type=\"button\"\u003e\\n Copy\\n\u003c/button\u003e\\n',\n      '\u003cbutton class=\"button button--small margin-top margin-bottom copy-tooltip copy-tooltip-w\" data-clipboard-text=\"Development Status :: 3 - Alpha\" data-tooltip-label=\"Copy to clipboard\" type=\"button\"\u003e\\n Copy\\n\u003c/button\u003e\\n',\n    :\n    :\n    :\n    \n    // result.headers\n    { 'Content-Length': '322126', ...\n    \n    // result.url\n    https://pypi.org/classifiers/\n    \n    /tmp/data.json saved successfully, written 174182 bytes\n\nIf you have `jq` tool;\n\n```bash\n$ cat /tmp/data.json | jq 'length'\n736\n```\n\nYou can also add extra `X-` headers to your request. Read more about http\nheaders at [Mozilla](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers)’s website.\n\n```javascript\nconst promptapi = require('@promptapi/scraper-pkg')\nparams = {}\nheaders = {'X-Referer': 'https://www.google.com'}\npromptapi.scraper('https://pypi.org/classifiers/', params, headers=headers).then(result =\u003e {\n  if(result.error){\n    console.log(result.error)\n  } else {\n    console.log(result.data); // your scraped data...\n    console.log(result.headers);\n    console.log(result.url);\n\n    promptapi.save('/tmp/data.html', result.data) // save result\n  }\n})\n\n```\n\n---\n\n## Development\n\nAll you need is `node` and `npm`...\n\n---\n\n## License\n\nThis project is licensed under MIT\n\n---\n\n## Contributer(s)\n\n* [Prompt API](https://github.com/promptapi) - Creator, maintainer\n\n---\n\n## Contribute\n\nAll PR’s are welcome!\n\n1. `fork` (https://github.com/promptapi/scraper-pkg/fork)\n1. Create your `branch` (`git checkout -b my-feature`)\n1. `commit` yours (`git commit -am 'Add awesome features...'`)\n1. `push` your `branch` (`git push origin my-feature`)\n1. Than create a new **Pull Request**!\n\nThis project is intended to be a safe,\nwelcoming space for collaboration, and contributors are expected to adhere to\nthe [code of conduct][coc].\n\n[promptapi-signup]: https://promptapi.com/#signup-form\n[scraper-api]:      https://promptapi.com/marketplace/description/scraper-api\n[coc]:              https://github.com/promptapi/scraper-pkg/blob/main/CODE_OF_CONDUCT.md","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpromptapi%2Fscraper-pkg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpromptapi%2Fscraper-pkg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpromptapi%2Fscraper-pkg/lists"}