Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A library for parsing and crawling HTML pages from http://lcbo.com

tree: 69664f4c02

Fetching latest commit…

Cannot retrieve the latest commit at this time

README.md

LCBO: The Ruby Gem

This library is used to gather data for LCBO API. It allows you to request and parse store, product, inventory, and product list pages directly from the LCBO website.

Synopsis

require 'lcbo'

LCBO.store(511)
# => { :store_no => 511, :name => "King & Spadina", ... }

LCBO.product(18)
# => { :product_no => 11, :name => "Heineken Lager", ... }

LCBO.inventory(18)
# => { :product_no => 18, :inventory_count => 40398, :inventories => [ ... ] }

LCBO.products_list(1)
# => { :page => 1, :final_page => 108, ..., :product_nos => [ ... ] }

Installation

Use Ruby Gems: gem install lcbo

Notes

  • Works with Ruby 1.9.2, not tested with 1.8.X or 1.9.1.
  • Don't be evil, be nice.
  • Lots of room to improve — fork your face off!

Links

Something went wrong with that request. Please try again.