{"id":16679696,"url":"https://github.com/buren/spidr_cli","last_synced_at":"2025-08-02T08:06:07.734Z","repository":{"id":52367942,"uuid":"139285509","full_name":"buren/spidr_cli","owner":"buren","description":"CLI for the spidr gem.","archived":false,"fork":false,"pushed_at":"2023-11-01T04:09:32.000Z","size":34,"stargazers_count":3,"open_issues_count":3,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T00:26:31.777Z","etag":null,"topics":["cli","ruby","rubygem","spider","spidr"],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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/buren.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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-06-30T22:48:45.000Z","updated_at":"2021-04-30T11:36:46.000Z","dependencies_parsed_at":"2025-02-15T23:31:14.604Z","dependency_job_id":"dde5d319-6fa2-42f2-8065-a2e6eeeac233","html_url":"https://github.com/buren/spidr_cli","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buren%2Fspidr_cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buren%2Fspidr_cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buren%2Fspidr_cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buren%2Fspidr_cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/buren","download_url":"https://codeload.github.com/buren/spidr_cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248123847,"owners_count":21051541,"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":["cli","ruby","rubygem","spider","spidr"],"created_at":"2024-10-12T13:36:55.058Z","updated_at":"2025-04-09T22:32:38.232Z","avatar_url":"https://github.com/buren.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SpidrCLI [![Build Status](https://travis-ci.org/buren/spidr_cli.svg?branch=master)](https://travis-ci.org/buren/spidr_cli)\n\nCommand Line Interface (CLI) for the excellent [`spidr`](https://github.com/postmodern/spidr) gem.\n\n## Installation\n\nInstall with\n\n    $ gem install spidr_cli\n\n## Usage\n\nPrint all found pages on site\n\n```\n$ spidr https://jacoburenstam.com/\n```\n\nPrint all HTML/JS/CSS pages\n```\n$ spidr --content-types=html,javascript,css https://jacoburenstam.com/\n```\n\nMax 10 pages\n```\n$ spidr --limit=10 https://jacoburenstam.com/\n```\n\nSpidr host\n```\n$ spidr host jacoburenstam.com\n```\n\nSpidr a single site (this is the default)\n```\n$ spidr site https://jacoburenstam.com\n```\n\nStart spidr from URL\n```\n$ spidr start_at https://jacoburenstam.com\n```\n\nAny method that [`Spidr::Page`](https://github.com/postmodern/spidr/blob/master/lib/spidr/page.rb) responds to you can output, you can also choose to include the header in the output (which is valid CSV)\n```\n$ spidr --columns=code,content_type,url \\\n        --header                        \\\n        https://jacoburenstam.com/\n```\n\nFull usage instructions\n\n```\nUsage: spidr [\u003cmethod\u003e] [options] \u003curl\u003e\n        --columns=[val1,val2]        Columns in output\n        --content-types=[val1,val2]  Formats to output (html, javascript, css, json, ..)\n        --[no-]header                Include the header\n        --[no-]strip-fragments       Specifies whether the Agent will strip URI fragments (default: true)\n        --[no-]strip-query           Specifies whether the Agent will strip URI query (default: false)\n        --schemes=[http,https]       Only spider links with certain scheme\n        --host=[example]             Only spider links on certain host\n        --hosts=[example.com]        Only spider links on certain hosts (ignored unless method is \"start_at\" or \"site\")\n        --ignore-hosts=[www.example.com]\n                                     Do not spider links on certain hosts (ignored unless method is \"start_at\" or \"site\")\n        --ports=[80, 443]            Only spider links on certain ports\n        --ignore-ports=[8000, 8080, 3000]\n                                     Do not spider links on certain ports\n        --links=[/blog/]             Only spider links on certain link patterns\n        --ignore-links=[/blog/]      Do not spider links on certain link patterns\n        --urls=[/blog/]              Only spider links on certain urls\n        --ignore-urls=[/blog/]       Do not spider links on certain urls\n        --exts=[htm]                 Only spider links on certain extensions\n        --ignore-exts=[cfm]          Do not spider links on certain extensions\n        --open-timeout=val           Open timeout\n        --read-timeout=val           Read timeout\n        --ssl-timeout=val            SSL timeout\n        --continue-timeout=val       Continue timeout\n        --keep-alive-timeout=val     Keep alive timeout\n        --proxy-host=val             The host the proxy is running on\n        --proxy-port=val             The port the proxy is running on\n        --proxy-user=val             The user to authenticate with the proxy\n        --proxy-password=val         The password to authenticate with the proxy\n        --default-headers=[key1=val1,key2=val2]\n                                     Default headers to set for every request\n        --host-header=val            The HTTP Host header to use with each request\n        --host-headers=[key1=val1,key2=val2]\n                                     The HTTP Host headers to use for specific hosts\n        --user-agent=val             The User-Agent string to send with each requests\n        --referer=val                The Referer URL to send with each request\n        --delay=val                  The number of seconds to pause between each request\n        --queue=[val1,val2]          The initial queue of URLs to visit\n        --history=[val1,val2]        The initial list of visited URLs\n        --limit=val                  The maximum number of pages to visit\n        --max-depth=val              The maximum link depth to follow\n        --[no-]robots                Respect Robots.txt\n    -h, --help                       How to use\n        --version                    Show version\n```\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/buren/spidr_cli.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n\n## Thanks\n\nHuge thanks to [@postmodern](https://github.com/postmodern) for creating [`spidr`](https://github.com/postmodern/spidr) :star:\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fburen%2Fspidr_cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fburen%2Fspidr_cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fburen%2Fspidr_cli/lists"}