This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Python3.6 | |
# Use an access token from the Hub to retrieve (all) users | |
# With the list of users, use the ORCID API proxy to retrieve their work summaries | |
# Done handle 401 responses by using a public read directly from ORCID | |
# Done change from json out to tsv | |
# Done make UTF-8 safe, much easier than I thought but seems to slow operation | |
# Done use time.sleep to control request/min and prevent overloading ORCID | |
# Was 8/sec now max 20/sec to be safe for V2 and V3) | |
# From the work summaries, call each work individually to get the needed metadata missing from the summary | |
# Write row at time to allow recovery from error and add skip_orcid to allow resume at specific ORCID ID |