This function wraps generic_elsevier_api
to give a
scopus search from the Elsevier Scopus Search API
Searches SCOPUS to get information about documents on an author.
scopus_search(
query,
api_key = NULL,
count = 200,
view = c("STANDARD", "COMPLETE"),
start = 0,
verbose = TRUE,
max_count = 20000,
http = "https://api.elsevier.com/content/search/scopus",
headers = NULL,
wait_time = 0,
...
)sciencedirect_search(count = 100, ...)
scidir_search(count = 100, ...)
List of entries from SCOPUS
Query string to search on SCOPUS
API Key for Elsevier
number of records to retrieve (below 200 for STANDARD, below 25 for COMPLETE views, see https://dev.elsevier.com/api_key_settings.html).
type of view to give, see https://dev.elsevier.com/documentation/ScopusSearchAPI.wadl
where should the records start gathering
Print diagnostic messages
Maximum count of records to be returned.
Address for scopus API
additional headers to be added to
add_headers
The time in seconds to wait across consecutive requests of a single search (when records > 25)
Arguments to be passed to the query list for
GET
if (have_api_key()) {
authorized = is_elsevier_authorized()
if (authorized) {
res = scopus_search(query = "all(gene)", max_count = 20,
count = 10)
df = gen_entries_to_df(res$entries)
head(df$df)
sci_res = sciencedirect_search(query = "heart+attack AND text(liver)",
max_count = 30, count = 25)
sci_df = gen_entries_to_df(sci_res$entries)
Sys.sleep(2)
nt = sciencedirect_search(query = "title(neurotoxin)", max_count = 20,
count = 10, wait_time = 1)
nt_df = gen_entries_to_df(nt$entries)
nt_df = nt_df$df
}
}
Run the code above in your browser using DataLab