Scraping all the cocktails, ingredients and instructions etc. from https://www.thecocktaildb.com/
.
Since The Cocktail DB Api
does not give us all the cocktails and their details from one particular endpoint, all ingredients, related cocktails and details must be fetched respectively. Cocktail Fetcher
helps you to fetch all the data and stores into a json file with the well-formatted way.
I needed a data source regarding to cocktails, ingredients and recipes for my ongoing bartender-bot project.
Installation steps are as follows.
$ npm install
$ npm run build
Once you have run the following command, after the operation is complete, all the data will be stored in the repository.json
file.
$ npm start
Use following instructions to run tests.
$ npm test