erans / ec2instancespricing

Quick and dirty Python API and CLI to get EC2 instance pricing for On-Demand and Reserved Instances
Other
175 stars 89 forks source link

No longer working #19

Closed junklight closed 9 years ago

junklight commented 9 years ago

With the new reservation pricing scheme they've updated it all again

haven't found the json files yet but here are the .js versions

https://a0.awsstatic.com/pricing/1/ec2/linux-od.min.js

https://a0.awsstatic.com/pricing/1/ec2/previous-generation/ri-v2/linux-unix-shared.min.js

you need to pull off the callback( ... ); bit - however still not parsing as son

junklight commented 9 years ago

that second url should be https://a0.awsstatic.com/pricing/1/ec2/previous-generation/linux-od.min.js

it's also not in the right format anymore - it's 'lazy' json - I found that demjson works to decode it

also the filter thing doesn't need to strip the '-1' off the region names

I'd upload a patch but my version is kind of quite forked from this one now and I've not got time this second to unknot the mess I've made

pdufault commented 9 years ago

Thanks for the hints you've made, I was able to get this working and included in #20.

Cheers

junklight commented 9 years ago

Cool. Sorry I've made a mess of the fork and couldn't push back - I'll try to tidy up and just wrap your code. Closing the issue