I haven’t been playing World of Warcraft for a bit, but I guess they did some big updates to the armory which stopped the code I had written before from running correctly. (Link to the old code, Ruby and Groovy)

After looking in to what has changed, I found out they added a new REST API for Battle.net which lets you pull data easily without the need of tricking the server to pass you XML. From the API, we get nice JSON data to work with. So here is some new code in Ruby, Groovy and CoffeeScript (running on Node.js) that can be used to get about the same output as the code I had before. (Link to gist)




For more info on the Battle.net API check out the API Documentation

If you have any questions or comments please post, also any suggestions on improving this are welcome as I’m sure there are ways to improve the code.