{"id":44112465,"url":"https://github.com/victormartinez/shub_cli","last_synced_at":"2026-02-08T16:34:38.330Z","repository":{"id":52705844,"uuid":"69181075","full_name":"victormartinez/shub_cli","owner":"victormartinez","description":"A CLI for dealing with the features of ScrapingHub","archived":false,"fork":false,"pushed_at":"2021-04-20T17:05:34.000Z","size":60,"stargazers_count":16,"open_issues_count":6,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-29T07:26:20.978Z","etag":null,"topics":["cli","crawler","scrapinghub","scrapinghub-api","scrapy","shub-cli","spider","spiders"],"latest_commit_sha":null,"homepage":"","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/victormartinez.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-09-25T18:00:40.000Z","updated_at":"2023-09-08T17:15:12.000Z","dependencies_parsed_at":"2022-08-22T09:20:26.604Z","dependency_job_id":null,"html_url":"https://github.com/victormartinez/shub_cli","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/victormartinez/shub_cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/victormartinez%2Fshub_cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/victormartinez%2Fshub_cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/victormartinez%2Fshub_cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/victormartinez%2Fshub_cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/victormartinez","download_url":"https://codeload.github.com/victormartinez/shub_cli/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/victormartinez%2Fshub_cli/sbom","scorecard":{"id":920506,"data":{"date":"2025-08-11","repo":{"name":"github.com/victormartinez/shub_cli","commit":"8e001ab879c57fa402ae7fea2c0e0934e34ad102"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.7,"checks":[{"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":"Code-Review","score":0,"reason":"Found 0/30 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":"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":"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":"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":"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":"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":"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: 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":"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":0,"reason":"11 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2020-92 / GHSA-hj5v-574p-mj7c","Warn: Project is vulnerable to: PYSEC-2022-42969","Warn: Project is vulnerable to: PYSEC-2021-140 / GHSA-9w8r-397f-prfh","Warn: Project is vulnerable to: PYSEC-2023-117 / GHSA-mrwq-x4v8-fh7p","Warn: Project is vulnerable to: PYSEC-2021-141 / GHSA-pq64-v7f5-gqh8","Warn: Project is vulnerable to: PYSEC-2021-142 / GHSA-8q59-q68h-6hv4","Warn: Project is vulnerable to: PYSEC-2018-49 / GHSA-rprw-h62v-c2w7","Warn: Project is vulnerable to: GHSA-9hjg-9r4m-mvj7","Warn: Project is vulnerable to: GHSA-9wx4-h78v-vm56","Warn: Project is vulnerable to: PYSEC-2023-74 / GHSA-j8r2-6x86-q33q","Warn: Project is vulnerable to: PYSEC-2018-28 / GHSA-x84v-xcm2-53pg"],"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-25T01:58:09.956Z","repository_id":52705844,"created_at":"2025-08-25T01:58:09.956Z","updated_at":"2025-08-25T01:58:09.956Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29236900,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-08T14:18:14.570Z","status":"ssl_error","status_checked_at":"2026-02-08T14:18:14.071Z","response_time":57,"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":["cli","crawler","scrapinghub","scrapinghub-api","scrapy","shub-cli","spider","spiders"],"created_at":"2026-02-08T16:34:37.368Z","updated_at":"2026-02-08T16:34:38.321Z","avatar_url":"https://github.com/victormartinez.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Scrapinghub CLI\n\nA Command Line Interface at your hands to deal with the features of ScrapingHub.\n\n[![Code Health](https://landscape.io/github/victormartinez/shub_cli/master/landscape.svg?style=flat)](https://landscape.io/github/victormartinez/shub_cli/master) [![Build Status](https://travis-ci.org/victormartinez/shub_cli.svg?branch=master)](https://travis-ci.org/victormartinez/shub_cli)\n\n![start-using](https://cloud.githubusercontent.com/assets/4680755/18898756/0ea42c0e-850a-11e6-801a-fdbd75915cdd.gif)\n\n[Python Package Index](https://pypi.python.org/pypi/shub-cli)\n\n### Install\nYou must install it using pip...\n\n```\n$ pip install shub-cli\n```\n\n... or [pipsi](https://github.com/mitsuhiko/pipsi)\n```\n$ pipsi install shub-cli\n```\n\n### Configuration\nShub CLI will look for the `.scrapinghub.yml` created by [ScrapingHub](https://doc.scrapinghub.com/shub.html?highlight=yml#quickstart) in your home directory and read the default API_KEY and PROJECT_ID.\nIf you do not have that file, set it up according to the example below:\n\n```\n~/.scrapinghub.yml\n\napikeys:\n  default: \u003cAPI_KEY\u003e\nprojects:\n  default: \u003cPROJECT_ID\u003e\n```\n\n### Start\n\nIf you set up ~/.scrapinghub.yml file\n```\n$ shub-cli repl\n```\n\nOtherwise...\n```\n$ shub-cli -api \u003cAPI KEY\u003e -project \u003cPROJECT_ID\u003e repl\n```\n\nIf you just want to run a command\n```\n$ shub-cli [credentials|spiders|job|jobs|schedule]\n```\n\n\n### Cheatsheet\n\n```\n\u003e credentials\n\u003e spiders\n\u003e job [-show|-cancel|-delete id]\n\u003e jobs [-spider spider] [-tag tag] [-lacks tag] [-state pending|running|finished|deleted] [-count count]\n\u003e schedule [-spider spider] [-tags tag1,tag2] [-priority 1|2|3|4]\n```\n\n\n### Commands\n\n#### Credentials\n\nCheck what credentials are being used to connect to Scrapinghub.\n```\n\u003e credentials\n```\n\n\n#### Spiders\nList all spiders available.\n```\n\u003e spiders\n```\n\n\n#### Jobs\n\nList the last 10 jobs or the ones according to your criteria.\n```\n\u003e jobs\n\u003e jobs -spider \u003cspider\u003e -tag \u003ctag\u003e -lacks \u003clacks\u003e -state \u003c[pending,finished,running,deleted]\u003e -count \u003c[0,1000]\u003e\n```\n\nExample:\n```\n\u003e jobs\n\u003e jobs -spider example -tag production -lacks consumed -state finished -count 100\n```\n\n**Attention:** By default, shub-cli will prompt the last 10 jobs. To override that behaviour use the -count parameter with the number of jobs you intend to show.\n\n#### Job\n\nShow, delete or cancel a id.\n```\n\u003e job -show \u003cid\u003e\n\u003e job -show \u003cid\u003e --with-log\n\u003e job -delete \u003cid\u003e\n\u003e job -cancel \u003cid\u003e\n```\n\nExample:\n```\n\u003e job -show 11/23/19801\n\u003e job -show 11/23/19801 --with-log\n\u003e job -delete 11/23/19801\n\u003e job -cancel 11/23/19801\n```\n\n\n#### Schedule\n\nSchedule a spider execution.\n```\n\u003e schedule -spider \u003cspider\u003e -priority \u003c[1,2,3,4]\u003e -tags \u003ctag1,tag2\u003e\n```\n\nExample:\n```\n\u003e schedule -spider my-spider\n\u003e schedule -spider my-spider -priority 4 -tags production,periodic\n\u003e schedule -spider my-spider -priority 3 -tags test\n```\n\n\n### Help:\nFor help or suggestion please open an issue at the [Github Issues page](https://github.com/victormartinez/shub_cli/issues).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvictormartinez%2Fshub_cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvictormartinez%2Fshub_cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvictormartinez%2Fshub_cli/lists"}