Project

extraspace

0.0
The project is in a healthy, maintained state
Uses HTTP.rb to scrape extraspace.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

ExtraSpace

LICENSE RubyGems GitHub Yard CircleCI

Installation

gem install extrapsace

Usage

require 'extraspace'

URL = 'https://www.extraspace.com/storage/facilities/us/alabama/auburn/3264/'
facility = ExtraSpace::Facility.fetch(url: URL)

puts "Line 1: #{facility.address.line1}"
puts "Line 2: #{facility.address.line2}"
puts "City: #{facility.address.city}"
puts "State: #{facility.address.state}"
puts "ZIP: #{facility.address.zip}"
puts "Latitude: #{facility.geocode.latitude}"
puts "Longitude: #{facility.geocode.longitude}"
puts

facility.prices.each do |price|
  puts "UID: #{price.uid}"
  puts "Dimensions: #{price.dimensions.display}"
  puts "Rates: $#{price.rates.street} (street) / $#{price.rates.web} (web)"
  puts
end