A simple wrapper around the orcid.org API. Enhanced clone of this rep - https://github.com/scholrly/orcid-python. Ready to run examples can be found in the examples folder.
Install at once with pip
pip install git+https://github.com/vdmitriyev/pyorcid.git
Manual installation (or usage):
- Download from the GitHub latest version
- Unzip archive
- Install dependencies (see the section Dependencies)
- requests>=1.0.4
Install dependencies with pip
pip install -r requirements.txt
Here's a quick snippet to get info on John Wilbanks
_. ::
>>> import pyorcid
>>> #retrieve john's profile from his ORCID
>>> john = pyorcid.get('0000-0002-4510-0385')
>>> print john.family_name
wilbanks
What if you'd like to see an author's works or areas of interest? ::
>>> print john.keywords
[]
>>> print john.publications
[]
Hm, let's try another author. ::
>>> alfonso = orcid.get('0000-0001-8855-5569')
>>> print alfonso.keywords
[u'computer science', u' bioinformatics', u' computational biology']
>>> print alfonso.publications[0]
<Publication "A note about norbert wiener and his contribution to harmonic analysis and tauberian theorems">
Maybe you'd like to read about Mr. Wiener's contributions? ::
>>> print alfonso.publications[0].url
http://www.scopus.com/inward/record.url?eid=2-s2.0-67650513866&partnerID=MN8TOARS
If you'd rather search for authors, try ORCID's search functionality using its API specification :
>>> #do a simple author search for john
>>> authors = orcid.search('family-name:wilbanks+AND+given-names:john')
>>> print next(authors).family_name
wilbanks
Cloned from the repository https://github.com/scholrly/orcid-python lead by Matt Luongo from Scholrly