Compendium of scripts to scrape and parse beer lists from Michigan-based brewery websites. A collaborative effort. Edit
pip install -r requirements.txt
export FLASK_APP=app.py
flask run
Test with
curl localhost:5000/abc
curl localhost:5000/atwater
curl localhost:5000/<other implemented>
PROFIT!
- Fork
- Pick [available] brewery(ies) to scrape and collection Michigan beer data about
- Follow pattern of parsing each beer into
Beer
object found inlib/beer.py
- Follow pattern of returning list of said beers from
get_beers()
function as seen inlib/brewery/arbor.py
- Unit tests not optional (don't shoot me!), no matter how cumbersome it is to test
- Create pull request
- Arbor Brewing Co
- Atwater Brewery
- the rest
- Logging when beers cannot be scraped (i.e. markup structure changes)
- Endpoint to return ALL beers - paginated?
- Will eventually be hosted on AWS using lambda, but a deployment package has not yet been created