pybliometrics.scopus.SubjectClassifications

class pybliometrics.scopus.SubjectClassifications(query, fields=None, refresh=False)[source]

Interaction with the Subject Classifications Scopus API.

Parameters:
Raises:
  • ValueError – If query or return fields contain invalid fields.
  • TypeError – If returned fields are not passed in an iterable container.

Examples

See https://pybliometrics.readthedocs.io/en/stable/examples/SubjectClassifications.html.

Notes

The directory for cached results is {path}/STANDARD/{fname}, where path is specified in ~/.scopus/config.ini and fname is the md5-hashed version of query dict turned into string in format of ‘key=value’ delimited by ‘&’.

results

A list of namedtuples representing results of subject classifications search.

The number of fields of namedtuples are specified during class initialization. Note: can be empty if no results are found.

get_cache_file_age()

Return the age of the cached file in days.

get_cache_file_mdate()

Return the modification date of the cached file.

get_key_remaining_quota()

Return number of remaining requests for the current key and the current API (relative on last actual request).

get_key_reset_time()

Return time when current key is reset (relative on last actual request).

get_results_size()

Return the number of results (works even if download=False).