vdmitriyev / orcidpyclient

A wrapper client around API of orcid.org
Other
6 stars 4 forks source link

Searching without knowing the full name of the author #7

Closed flouland closed 3 years ago

flouland commented 3 years ago

Is it possible to search for an author without knowing the full name?

ex:

Only the first initial of the first name is known J. Wilbanks

author = pyorcid.search(f'family-name:Wilbanks+AND+given-names:J')

vdmitriyev commented 3 years ago

I think that this should work for you:

authors = pyorcid.search('family-name:wilbanks&start=0&rows=3')

P.S. Here rows means how many records to show/fetch, and start means where to start. More information on syntax of a potential query you can find in the tutorial from ORCID