Sha256: 9ba7ccbe47d2bbd6ac84c21f19373f750a171f89a0bfd1f34b008413a4d30325

Contents?: true

Size: 978 Bytes

Versions: 2

Compression:

Stored size: 978 Bytes

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

    $ gem install vrbo

## Usage

If you're just working with one calendar, then you can specify the VRBO calendar id in an initializer:

```ruby
# config/initializers/vrbo.rb
VRBO.configure do |config|
  config.calendar_id = 293021
end
```

Then to lookup available dates and see if a date range is available:

```ruby
calendar = VRBO::Calendar.new
calendar.available?(Date.today, Date.today + 5)
#=> true/false
calendar.available_dates
#=> ["2015-11-03", "2015-11-04", "2015-11-05", ...]
```

## 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

2 entries across 2 versions & 1 rubygems

Version Path
vrbo-2.1.0 README.md
vrbo-2.0.1 README.md