You wouldn't need SSL or https support to do an http GET request over an unencrypted connection.
That said, you could do something like:
#!/usr/bin/env pythonimport sys
import requests
url ='http://files.rcsb.org/download/1N5O.pdb'
localFn ='1N5O.pdb'
try:
r = requests.get(url, stream=True)
with open(localFn, 'wb') as f:
for chunk in r.iter_content(chunk_size=1024*1024):
if chunk:
f.write(chunk)
except requests.exceptions.ChunkedEncodingError as cee:
sys.stderr.write('Error: Could not get data')
sys.exit(-1)
Hi Alex,
Thank you very much for your help.
I have applied these to my code, and its working fine now.
Have a good week ahead.