Mercurial > repos > iuc > ebi_search_rest_results
comparison ebeye_urllib.py @ 3:42d5e40fcd0b draft default tip
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ebi_tools commit 31d1c92a4c12b6a78693dc5091a08536a075285e
author | iuc |
---|---|
date | Thu, 09 Feb 2017 12:02:58 -0500 |
parents | b6029f2c71cb |
children |
comparison
equal
deleted
inserted
replaced
2:b6029f2c71cb | 3:42d5e40fcd0b |
---|---|
3 # Script derived from the EB-eye (REST) Python client available at | 3 # Script derived from the EB-eye (REST) Python client available at |
4 # http://www.ebi.ac.uk/Tools/webservices/services/eb-eye_rest | 4 # http://www.ebi.ac.uk/Tools/webservices/services/eb-eye_rest |
5 # and distributed under the Apache License | 5 # and distributed under the Apache License |
6 # ====================================================================== | 6 # ====================================================================== |
7 # Load libraries | 7 # Load libraries |
8 | |
9 from __future__ import print_function | |
10 | |
8 import os | 11 import os |
9 import platform | 12 import platform |
10 import re | 13 import re |
11 import urllib | 14 import urllib |
12 import urllib2 | 15 import urllib2 |
267 for fieldurl in entry['fieldURLs']['fieldURL':]: | 270 for fieldurl in entry['fieldURLs']['fieldURL':]: |
268 fieldURL += str(fieldurl) | 271 fieldURL += str(fieldurl) |
269 printDebugMessage('getEntries', 'End', 1) | 272 printDebugMessage('getEntries', 'End', 1) |
270 p = re.compile('http') | 273 p = re.compile('http') |
271 fieldURL = p.sub('https', fieldURL) | 274 fieldURL = p.sub('https', fieldURL) |
272 print fieldURL | 275 print(fieldURL) |
273 | 276 |
274 | 277 |
275 if __name__ == '__main__': | 278 if __name__ == '__main__': |
276 # Usage message | 279 # Usage message |
277 usage = """ | 280 usage = """ |