Skip to content
/ lcbo Public
forked from heycarsten/lcbo

A library for parsing and crawling LCBO.com, powers LCBO API.

License

Notifications You must be signed in to change notification settings

alow/lcbo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LCBO: The Ruby Gem

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

Synopsis

  require 'lcbo'

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

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

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

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

  LCBO.store_list
  # => { :store_ids => [1, 2, 3, 4, 5, 6, 8, 9, 10, 11, ...] }

Is It Good?

Yes.

Is It Production Ready?

Yes. This codebase has been in use for over 4 years powering LCBO API.

Getting It

Package available through RubyGems: gem install lcbo

Compatibility

  • Ruby 1.9.3 MRI
  • Ruby 2.0.0 MRI

Notes

  • This is not "LCBO API In A Box", it is the data-gathering component of LCBO API.
  • Don't be evil, be nice!

About

A library for parsing and crawling LCBO.com, powers LCBO API.

Resources

License

Stars

Watchers

Forks

Packages

No packages published