Mercurial > repos > earlhaminst > ensembl_get_genetree
diff get_feature_info.py @ 6:0618e3bd5138 draft
"planemo upload for repository https://github.com/TGAC/earlham-galaxytools/tree/master/tools/Ensembl-REST commit 17c65045b726d0695814bfe761e534f6521786f1"
author | earlhaminst |
---|---|
date | Tue, 20 Oct 2020 15:06:37 +0000 |
parents | 675fd774314e |
children |
line wrap: on
line diff
--- a/get_feature_info.py Thu Oct 31 07:49:30 2019 -0400 +++ b/get_feature_info.py Tue Oct 20 15:06:37 2020 +0000 @@ -23,7 +23,7 @@ raise Exception('-i option must be specified') -server = 'http://rest.ensembl.org' +server = 'https://rest.ensembl.org' ext = 'lookup/id' headers = {'Content-Type': 'application/json', 'Accept': 'application/json'} @@ -42,7 +42,7 @@ print(",") data = {'ids': ids} r = requests.post(urljoin(server, ext), params=params, headers=headers, - data=json.dumps(data)) + data=json.dumps(data), allow_redirects=False) if not r.ok: r.raise_for_status()