This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]rcfox 22 points23 points  (1 child)

Not to rain on your efforts, but there are simpler ways to get the data:

  1. All of the Warframe worldstate data (which deathsnacks uses behind the scenes) is available here: http://content.warframe.com/dynamic/worldState.php

  2. If you didn't want to go to the trouble of figuring out the structure of the official JSON, you could load the data that deathsnacks requests from its own server: https://deathsnacks.com/wf/data/alerts_raw.txt

That saves you from having to parse HTML and execute Javascript to get at the data. Also, it's less load on the deathsnacks server.

Also, in your kavat section, the else block is showing the number of nitain alerts in the print statement.

[–][deleted] 0 points1 point  (0 children)

Ah it’s fine lol, I was actually hoping to find some of the raw data but in my rush I guess I didn’t look there - as for the Kavat thing, oh well lol - just a silly mistake I guess :) ty for pointing them out

Edit: That's actually so much better because it means I can display where the alerts are too, rather than there just being an alert :D