0.0
No commit activity in last 3 years
No release in over 3 years
The BeerAdvocate gem contains several brittle, lightly-tested methods for turning a beer name into its Beer Advocate URL (by scraping Google), and turning a Beer Advocate beer page URL into a hash of attributes about the beer (by scraping Beer Advocate). The gem also installs a `beer` executable, which returns JSON-formatted beer information for the beer named on the command line.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

~> 4.7
~> 10.0

Runtime

~> 1.6
 Project Readme

beeradvocate

Build Status

A BeerAdvocate.com scraper of debatable quality. Written in Ruby.

Installation

gem install beeradvocate

Overview

The beeradvocate gem implements several useful functions for scraping beer information from the Beer Advocate website.

BeerAdvocate.get_url(beer_name), given the name of a beer or something like it, will return the first Beer Advocate beer search result.

BeerAdvocate.get_beer_details_from_url(url), given a Beer Advocate beer page URL (as returned from .get_url), will return a hash of beer attributes name, score, style, abv, and brewery.

The beer command-line tool combines these two features. Given the name of a beer on the command line, beer will return a JSON-formatted hash of beer details:

$ beer cambridge porter
{
  "name": "Charles River Porter",
  "score": "88",
  "style": "American Porter",
  "abv": "5.90%",
  "brewery": "Cambridge Brewing Company"
}

Bugs

Very probable.

Authorship and License

Pete Gamache wrote this in haste in July 2015.

This project is not developed or endorsed by Beer Advocate.

This code is released into the public domain.