Skip to content

Instantly share code, notes, and snippets.

@aschreyer
Last active December 10, 2015 23:49
Show Gist options
  • Save aschreyer/4512676 to your computer and use it in GitHub Desktop.
Save aschreyer/4512676 to your computer and use it in GitHub Desktop.
import urllib2
import json
headers = {'Accept' : 'application/json'}
req = urllib2.Request('http://marid.bioc.cam.ac.uk/credo/chemcomps/001', headers=headers)
resp = urllib2.urlopen(req)
jsondata = json.load(resp)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment