Skip to content

Commit

Permalink
Added function call rate limitation
Browse files Browse the repository at this point in the history
  • Loading branch information
MayaSamet committed Jun 2, 2020
1 parent 97055c3 commit 06baa59
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions R/citation_search.R
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ citation_search_scopus <- function(identifiers) {

results <- list()
for (i in 1:length(identifiers)) {
Sys.sleep(0.12)
results[[i]] <-
fromJSON(curl(paste0("https://api.elsevier.com/content/search/scopus?query=ALL:", identifiers[i], paste("&APIKey=",tmp, sep=""))))
}
Expand Down

0 comments on commit 06baa59

Please sign in to comment.