Skip to content

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.

License

Notifications You must be signed in to change notification settings

ArekusuNaito/wow-recipe-list-to-json

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WoW Recipe List to JSON

Description

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! 😊

To Use

# 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

This is an example recipe item object

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.

Special Thanks

  • WoWHead for their community database
  • Blizzard for providing their APIs

About

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.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published