Package: scopus-caller
SCOPUS Callerℹ️Scopus quickly finds relevant and authoritative research, identifies experts and provides access to reliable data,
metrics and analytical tools. Be confident in progressing research, teaching or research direction and priorities
— all from one database and with one subscription.What isSCOPUS APISCOPUS APIallows the users to query its database for all the articles based on a specified keyword(s).A user needs to create an account onSCOPUSusing your university or
personal account and generate the SCOPUS key.The API specification can be seen at thislink. Using this API, It is possible
toretrieve title,authors,affiliation,DOI, etc of the scientific articles. Further, depending on the
access level of the article and authorized API, the article'sabstract-textcan also be retrieved.Semantic Scholar APISemantic Scholar also provides an API to retrieve the article's meta-data. It is possible to obtain abstracts by
specifying the DOI of the article. Abstracts for all SCOPUS database articles are not available from Semantic Scholar database.InstallationCreate a virtual environment to install all packages in and activate the environment:(Make sure you are in the parrent folder of this project)# crate an environment called venv in this projectpython3-mvenv~/.scopus-caller# activate the environmentsource~/.scopus-caller/bin/activateInstall the packagepipinstallscopus-callerObtain the API KeyIf you haven't created an account onSCOPUSyet, got toSCOPUSand create a private account or one via your university.After being logged in, create a new API keyhere, name the label to your
likings and leave the website input field empty(it is not important).Carefully read and understand the "API
SERVICE AGREEMENT" and "Text and Data Mining (TDM) Provisions", before using the API and the retrieved data. These
will be presented to the user while generating the API.Copy you API key and store it in a text file.UsageImport the library and paste the API key. Then run the following code inPython3terminal or Jupyter notebook.# import the moduleimportscopuscallerassc# paste the api hereapi_key=""Parameters of functioncall_scopus.py:Parameters:api_key (str): Your Elsevier API key for authentication.keywords (list of str): Keywords to search for in article titles and abstracts.year (int, optional): The publication year to filter the articles. Default is 2023.Example:The following command will search for articles with the search termstransportation,road safetyandmachine learningpublished before 2023 (inclusive).# Obtain the articlesdf=sc.get_titles(api_key,["transportation","road safety","transfer learning"],2023)# Obtain the abstracts of the above articles. For abstracts, you need to specify the output of previous step as input and then run the followingdf=sc.get_abstracts(df)CitingThis is based on the base scriptScopus-Query, so kindly cite:Narayanan, S., & Antoniou, C. (2022). Electric cargo cycles - A comprehensive review. Transport Policy, 116 , 278–303.
doi:10.1016/j.tranpol.2021.12.011.Further, to see examples of how the keywords are used, you may see the Supplementary information in the following publication:Vishal Mahajan, Nico Kuehnel, Aikaterini Intzevidou, Guido Cantelmo, Rolf Moeckel & Constantinos Antoniou (2022) Data
to the people: a review of public and proprietary data for transport models, Transport Reviews, 42:4, 415-440,
DOI:10.1080/01441647.2021.1977414LicenseDistributed under the MIT License.