{"id":22016313,"url":"https://github.com/ksylvest/publicstorage","last_synced_at":"2025-05-07T01:24:28.339Z","repository":{"id":264970294,"uuid":"894767295","full_name":"ksylvest/publicstorage","owner":"ksylvest","description":"A Ruby library for Public Storage that crawls self-storage facilities and prices.","archived":false,"fork":false,"pushed_at":"2025-05-05T16:50:03.000Z","size":237,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-05-05T18:00:30.832Z","etag":null,"topics":["ruby"],"latest_commit_sha":null,"homepage":"https://publicstorage.ksylvest.com/","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/ksylvest.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,"zenodo":null}},"created_at":"2024-11-27T00:28:17.000Z","updated_at":"2025-05-05T16:50:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"44277e23-35eb-4c25-bbc9-8ab9a33a422e","html_url":"https://github.com/ksylvest/publicstorage","commit_stats":null,"previous_names":["ksylvest/publicstorage"],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ksylvest%2Fpublicstorage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ksylvest%2Fpublicstorage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ksylvest%2Fpublicstorage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ksylvest%2Fpublicstorage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ksylvest","download_url":"https://codeload.github.com/ksylvest/publicstorage/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252794555,"owners_count":21805212,"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":["ruby"],"created_at":"2024-11-30T04:34:20.762Z","updated_at":"2025-05-07T01:24:28.316Z","avatar_url":"https://github.com/ksylvest.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Public Storage\n\n[![LICENSE](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/ksylvest/publicstorage/blob/main/LICENSE)\n[![RubyGems](https://img.shields.io/gem/v/publicstorage)](https://rubygems.org/gems/publicstorage)\n[![GitHub](https://img.shields.io/badge/github-repo-blue.svg)](https://github.com/ksylvest/publicstorage)\n[![Yard](https://img.shields.io/badge/docs-site-blue.svg)](https://publicstorage.ksylvest.com)\n[![CircleCI](https://img.shields.io/circleci/build/github/ksylvest/publicstorage)](https://circleci.com/gh/ksylvest/publicstorage)\n\nA Ruby library offering both a CLI and API for scraping [Public Storage](https://www.publicstorage.com/) self-storage facilities and prices.\n\n## Installation\n\n```bash\ngem install publicstorage\n```\n\n## Configuration\n\n```ruby\nrequire 'publicstorage'\n\nPublicStorage.configure do |config|\n  config.user_agent = '../..' # ENV['PUBLICSTORAGE_USER_AGENT']\n  config.timeout = 30 # ENV['PUBLICSTORAGE_TIMEOUT']\nend\n```\n\n## Usage\n\n```ruby\nrequire 'publicstorage'\n\nsitemap = PublicStorage::Facility.sitemap\nsitemap.links.each do |link|\n  url = link.loc\n  facility = PublicStorage::Facility.fetch(url:)\n\n  puts facility.text\n\n  facility.prices.each do |price|\n    puts price.text\n  end\n\n  puts\nend\n```\n\n## CLI\n\n```bash\npublicstorage crawl\n```\n\n```bash\npublicstorage crawl \"https://www.publicstorage.com/self-storage-ca-venice/120.html\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fksylvest%2Fpublicstorage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fksylvest%2Fpublicstorage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fksylvest%2Fpublicstorage/lists"}