3 ms·
This works great! I looked into doi.org before but I wasn't sure what their ratelimit is. I'm currently using phantomJS and google scholar for DOIs, and I think
by michaelq 12y ago
This works great! I looked into doi.org before but I wasn't sure what their ratelimit is. I'm currently using phantomJS and google scholar for DOIs, and I think I might have hit their rate limit already, so I will take a second look at this!
- aaren 12y agop.s. I found I had to use 'data.crossref.org' instead of 'dx.doi.org' when I scripted it (python + requests). Not sure why exactly (doi was redirecting to crossref anyway).
- aaren 12y agoHow to do it in python in case anyone is wondering: import requests import json url = 'http://data.crossref.org/10.1017/S0022112061000019' headers = {'Accept': 'application/citeproc+json'} r = requests.get(url, headers=headers) meta = json.loads(r.content) # meta is a dictionary of metadata, e.g. meta['DOI']
- mmcnickle 12y agoNeat tip: You can just do: meta = r.json() and avoid the json import.
- afandian 12y agoFYI this is CrossRef DOIs, and the data is served by CrossRef. Take a look at our API, e.g. http://api.crossref.org/works/10.5555/12345678 http://api.crossref.org/works/10.5555/12345678 and http://search.crossref.org http://search.crossref.org Any questions email, us at labs@crossref.org *which are the kinds of DOI you're likely to be citing, but other Registration Agencies and types of DOIs exist