Mercurial > repos > eric-rasche > gsaf_downloader
comparison 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 |
comparison
equal
deleted
inserted
replaced
2:9bbff491ddc9 | 3:ba70ea57cef9 |
---|---|
16 pass | 16 pass |
17 | 17 |
18 URL = sys.argv[1] | 18 URL = sys.argv[1] |
19 DATASET_ID = sys.argv[2] | 19 DATASET_ID = sys.argv[2] |
20 | 20 |
21 #req = urllib2.urlopen(URL) | 21 req = urllib2.urlopen(URL) |
22 #page = req.read() | 22 page = req.read() |
23 with open('file.html', 'r') as handle: | |
24 page = handle.read() | |
25 comments = [x.strip() for x in page.split('\n') if x.strip().startswith('<!--')] | 23 comments = [x.strip() for x in page.split('\n') if x.strip().startswith('<!--')] |
26 | 24 |
27 gx_json = open('galaxy.json', 'w') | 25 gx_json = open('galaxy.json', 'w') |
28 | 26 |
29 prefix = '<!--gsafjson' | 27 prefix = '<!--gsafjson' |