libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject [3/3] git commit: Update ec2 pricing scrape script so it also scrapes pricing data for previous generation instances.
Date Sat, 06 Sep 2014 19:13:46 GMT
Update ec2 pricing scrape script so it also scrapes pricing data for previous
generation instances.


Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/743259ec
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/743259ec
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/743259ec

Branch: refs/heads/trunk
Commit: 743259ec424225729e8c0fee8bb399a296d613c0
Parents: 783f936
Author: Tomaz Muraus <tomaz@apache.org>
Authored: Sat Sep 6 21:12:46 2014 +0200
Committer: Tomaz Muraus <tomaz@apache.org>
Committed: Sat Sep 6 21:13:19 2014 +0200

----------------------------------------------------------------------
 contrib/scrape-ec2-prices.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/743259ec/contrib/scrape-ec2-prices.py
----------------------------------------------------------------------
diff --git a/contrib/scrape-ec2-prices.py b/contrib/scrape-ec2-prices.py
index e8c2b99..762e96d 100755
--- a/contrib/scrape-ec2-prices.py
+++ b/contrib/scrape-ec2-prices.py
@@ -27,9 +27,11 @@ import requests
 import demjson
 
 LINUX_PRICING_URLS = [
-    # Deprecated instances, JSON format
+    # Deprecated instances (JSON format)
     'http://aws.amazon.com/ec2/pricing/json/linux-od.json',
-    # Instancances JavaScript files
+    # Previous generation instances (JavaScript file)
+    'http://a0.awsstatic.com/pricing/1/ec2/previous-generation/linux-od.min.js',
+    # New generation instances (JavaScript file)
     'https://a0.awsstatic.com/pricing/1/ec2/linux-od.min.js'
 ]
 


Mime
View raw message