Coder Social home page Coder Social logo

beeradvocate's Introduction

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.

beeradvocate's People

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

bobylevd qbit

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.