pybliometrics.scopus.PlumXMetrics ================================= `PlumXMetrics()` implements the `PlumX Metrics API `_. It offers metrics across five categories: captures, citations, usage, mentions, and social media -- see `here `_ for background information. It works for many different types of media. .. currentmodule:: pybliometrics.scopus .. contents:: Table of Contents :local: Documentation ------------- .. autoclass:: PlumXMetrics :members: :inherited-members: Examples -------- You initialize the class with the identifier of a document and its type: .. code-block:: python >>> from pybliometrics.scopus import PlumXMetrics >>> plum = PlumXMetrics("2-s2.0-85054706190", id_type='elsevierId') You can obtain basic information just by printing the object: .. code-block:: python >>> print(plum) Document with elsevierId 2-s2.0-85054706190 received: - 460 citation(s) in category 'capture' - 232 citation(s) in category 'citation' - 2 citation(s) in category 'mention' - 42 citation(s) in category 'socialMedia' - 216 citation(s) in category 'usage' as of 2023-10-20 For each of the five categories, there is a corresponding property that stores the number and origin of the metrics in `namedtuples `_. If a category has no entries, the corresponding property will be `None`: .. code-block:: python >>> >>> plum.capture [Metric(name='READER_COUNT', total=459), Metric(name='EXPORTS_SAVES', total=1)] >>> plum.citation [Metric(name='Scopus', total=231), Metric(name='CrossRef', total=80), Metric(name='Policy Citation', total=1)] >>> plum.mention [Metric(name='NEWS_COUNT', total=2)] >>> plum.social_media [Metric(name='FACEBOOK_COUNT', total=42)] >>> plum.usage [Metric(name='ABSTRACT_VIEWS', total=205), Metric(name='LINK_OUTS', total=11)] Finally, there is a property that totals all metrics at an aggregated level: .. code-block:: python >>> plum.category_totals [Category(name='capture', total=460), Category(name='citation', total=232), Category(name='mention', total=2), Category(name='socialMedia', total=42), Category(name='usage', total=216)] There are no bibliometric information such as title or author. Downloaded results are cached to expedite subsequent analyses. This information may become outdated. To refresh the cached results if they exist, set `refresh=True`, or provide an integer that will be interpreted as maximum allowed number of days since the last modification date. For example, if you want to refresh all cached results older than 100 days, set `refresh=100`. Use `ab.get_cache_file_mdate()` to obtain the date of last modification, and `ab.get_cache_file_age()` to determine the number of days since the last modification.