Mercurial > repos > eric-rasche > gsaf_downloader
changeset 3:ba70ea57cef9 draft
Removed testing code
author | eric-rasche |
---|---|
date | Fri, 05 Dec 2014 14:34:49 -0500 |
parents | 9bbff491ddc9 |
children | a90d7b00d727 |
files | gsaf_download.py |
diffstat | 1 files changed, 2 insertions(+), 4 deletions(-) [+] |
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')