Skip to content

Commit

Permalink
http -> https
Browse files Browse the repository at this point in the history
  • Loading branch information
aurel-l committed Jun 7, 2017
1 parent ea19d1a commit 63b8465
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions docs/_static/code/phmmer_python.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,22 @@ def http_error_302(self, req, fp, code, msg, headers):
urllib2.install_opener(opener);

parameters = {
'seqdb':'pdb',
'seq':'>Seq\nKLRVLGYHNGEWCEAQTKNGQGWVPSNYITPVNSLENSIDKHSWYHGPVSRNAAEY'
}
'seqdb':'pdb',
'seq':'>Seq\nKLRVLGYHNGEWCEAQTKNGQGWVPSNYITPVNSLENSIDKHSWYHGPVSRNAAEY'
}
enc_params = urllib.urlencode(parameters);

#post the seqrch request to the server
request = urllib2.Request('http://www.ebi.ac.uk/Tools/hmmer/search/phmmer',enc_params)
request = urllib2.Request('https://www.ebi.ac.uk/Tools/hmmer/search/phmmer',enc_params)

#get the url where the results can be fetched from
results_url = urllib2.urlopen(request).getheader('location')

# modify the range, format and presence of alignments in your results here
res_params = {
'output':'json',
'range':'1,10'
}
'output': 'json',
'range': '1,10'
}

# add the parameters to your request for the results
enc_res_params = urllib.urlencode(res_params)
Expand Down

0 comments on commit 63b8465

Please sign in to comment.