Sha256: 1813b76868b035e9d288343c6b635c325cac826e7ebd1f11c744f160823398b4
Contents?: true
Size: 1.18 KB
Versions: 3
Compression:
Stored size: 1.18 KB
Contents
# VRBO Calendar Scraper Uses mechanize to scrape a VRBO calendar and return a list of available dates. For instance, the gem can scrape this calendar: [http://www.vrbo.com/293021/calendar](http://www.vrbo.com/293021/calendar) ## Installation Add this line to your application's Gemfile: gem 'vrbo' And then execute: $ bundle Or install it yourself as: $ gem install vrbo ## Usage If you're just working with one calendar, then you can specify the VRBO calendar id in an initializer: # config/initializers/vrbo_calendar.rb VRBO.configure do |config| config.calendar_id = 293021 end Then to lookup available dates and see if a date range is available: calendar = VRBO::Calendar.new calendar.find_all_available_dates calendar.available?(Date.today, Date.tomorrow) #=> true/false These two methods are also available as class methods, however `available?` will then need an array of dates as the third parameter. ## Contributing 1. Fork it 2. Create your feature branch (`git checkout -b my-new-feature`) 3. Commit your changes (`git commit -am 'Add some feature'`) 4. Push to the branch (`git push origin my-new-feature`) 5. Create new Pull Request
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
vrbo-0.2.0 | README.md |
vrbo-0.1.1 | README.md |
vrbo-0.1.0 | README.md |