diff gsaf_download.py @ 3:ba70ea57cef9 draft

Removed testing code
author eric-rasche
date Fri, 05 Dec 2014 14:34:49 -0500
parents c892ae46653b
children a90d7b00d727
line wrap: on
line diff
--- a/gsaf_download.py	Fri Dec 05 14:32:05 2014 -0500
+++ b/gsaf_download.py	Fri Dec 05 14:34:49 2014 -0500
@@ -18,10 +18,8 @@
 URL = sys.argv[1]
 DATASET_ID = sys.argv[2]
 
-#req = urllib2.urlopen(URL)
-#page = req.read()
-with open('file.html', 'r') as handle:
-    page = handle.read()
+req = urllib2.urlopen(URL)
+page = req.read()
 comments = [x.strip() for x in page.split('\n') if x.strip().startswith('<!--')]
 
 gx_json = open('galaxy.json', 'w')