A system that by scraping the html code from Wowhead and using the official Blizzard WoW API can give you a recipe list and the list of every item used in the recipes.
This repository uses typescript
, I use fuse-box
to cook the scripts. And I use Rx Observables
as well! 😊
# Install dependencies
npm install
# Start the fuse server. To cook the ts files
node fuse
# Once fuse is executed, you can use the bundled js in the dist folder.
node dist/recipes.js <wowhead-url>
# Eg.
node dist/recipes.js https://www.wowhead.com/cooking-recipe-spells/outlandish-dishes-header/outlandish-dishes
You will find this in Recipe list with reagents.json
{
"id":43779,
"name":"Recipe: Delicious Chocolate Cake",
"reagents":
[
{"id":30817,"quantity":8},
{"id":1179,"quantity":4},
{"id":2678,"quantity":4},
{"id":6889,"quantity":8},
{"id":2593,"quantity":1},
{"id":785,"quantity":3}
],
"creates":{"id":33924,"quantity":1}
}
You can then use the Blizzard API to get what you need.
For example, I made a request to every recipe.creates.id
so it would give me all the official item data from the BlizzardAPI
.
- WoWHead for their community database
- Blizzard for providing their APIs