scopus.ScopusSearch

class scopus.ScopusSearch(query, refresh=False, view='COMPLETE')[source]

Class to search a query, and retrieve a list of EIDs as results.

Parameters:
  • query (str) – A string of the query.
  • refresh (bool (optional, default=False)) – Whether to refresh the cached file if it exists or not.
  • view (str (optional, default=COMPLETE)) – Which view to use for the query, see https://dev.elsevier.com/guides/ScopusSearchViews.htm. Allowed values: STANDARD, COMPLETE. By default, the COMPLETE view is used, which returns more fields but results in a slower query.
Raises:
  • ScopusQueryError – If the number of search results exceeds 5000.
  • ValueError – If the view parameter is not one of the allowed ones.

Notes

Json results are cached in ~/.scopus/scopus_search/{fname}, where fname is the md5-hashed version of query.

get_eids()[source]

EIDs of retrieved documents.

EIDS

Outdated property, will be removed in a future release. Please use get_eids() instead. For details see https://scopus.readthedocs.io/en/latest/tips.html#migration-guide-to-0-x-to-1-x.

results

A list of namedtuples in the form (eid doi pii pubmed_id title subtype creator afid affilname affiliation_city affiliation_country author_count author_names author_ids author_afids coverDate coverDisplayDate publicationName issn source_id eIssn aggregationType volume issueIdentifier article_number pageRange description authkeywords citedby_count openaccess fund_acr fund_no fund_sponsor). Field definitions correspond to https://dev.elsevier.com/guides/ScopusSearchViews.htm, except for afid, affilname, affiliation_city, affiliation_country, author_count, author_names, author_ids and author_afids: These information are joined on “;”. In case an author has multiple affiliations, they are joined on “-” (e.g. Author1Aff;Author2Aff1-Author2Aff2).

Notes

The list of authors and the list of affiliations per author are deduplicated.