0.0
The project is in a healthy, maintained state
Uses HTTP.rb to scrape publicstorage.com.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 0
>= 0
 Project Readme

PublicStorage

LICENSE RubyGems GitHub Yard CircleCI

Installation

gem install publicstorage

Configuration

require 'publicstorage'

PublicStorage.configure do |config|
  config.user_agent = '../..' # ENV['PUBLICSTORAGE_USER_AGENT']
  config.timeout = 30 # ENV['PUBLICSTORAGE_TIMEOUT']
end

Usage

require 'publicstorage'

sitemap = PublicStorage::Facility.sitemap
sitemap.links.each do |link|
  url = link.loc
  facility = PublicStorage::Facility.fetch(url:)

  puts facility.text

  facility.prices.each do |price|
    puts price.text
  end

  puts
end

CLI

publicstorage crawl