Ever wondered 'I wonder if my shampoo is cheaper at Coles or Woolworths...?' ? But can't be bothered searching all three websites and comparing? Well that's what this gem does for you. Simply install and follow the prompts.
For those who previously downloaded this Gem, compare_supermarkets no longer compares IGA prices as the IGA HTML changes too frequently - Apologies for the inconvenience.
Installation
Add this line to your application's Gemfile:
gem 'compare_supermarkets'
And then execute:
$ bundle install
Or install it yourself as:
$ gem install compare_supermarkets
Google chrome and ChromeDriver must be installed to use this GEM
To install ChromeDriver on MacOS
$ brew install --cask chromedriver
To install ChromeDriver on Windows please visit this guide and follow along https://chromedriver.chromium.org/getting-started
Usage
To use compare_supermarkets call $ compare_supermarkets and follow the prompts. The more specific you are the faster the search results appear and there will be less items to compare.
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/happymelonbox/compare_supermarkets.
License
The gem is available as open source under the terms of the [MIT License](https://opensource.org /licenses/MIT).