Code Monkey home page Code Monkey logo

beer_recommender's Introduction

Beer Recommender

This is a simple app for me to get used to APIs in Python. I have a project idea to use an API, and it was asked that I use Python for this project.

I haven't really made much with Python, and I have never worked with APIs in Python. I thougth a simple little app for fun would be a good way to get my feet wet.

The Method

I followed along to John Watson Rooney's video: "HOW TO: JSON and APIs in PYTHON - A Beginners Look" to get an idea of how APIs in Python works.

  • Uses the requests HTTP library that sends an HTTP/1.1 request to the API.
  • The API used was the Punk API.
    • The Punk API has built in querying.
    • I prompt the user for what type of food they are eating, and the API uses a fuzzy search to generate an array of objects.
      • This array of objects is a list of beers where the food pairings given for each beer in the API is fuzzy matched to the user's input.
  • Once the API finds and builds an array of beers that match the food pairing, it chooses a random one to recommend using the random module, and generates a random recommendation to the screen.

Screenshots

Version 1

Beer Recommendation Output Image, Version 1

  • This was basically the output from the video. I set up my own output however. I didn't follow the video's output example, I styled it myself.

Version 2

Beer Recommendation Output Image, Version 2

  • I didn't like the format of the output, the tagline didn't make sense the way I had it.
  • I included the tagline as the initial recommendation.
  • I also added the IPAs description to the output as well.

beer_recommender's People

Contributors

rperry99 avatar

Watchers

 avatar

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.