Records¶
Normalise results into one stable schema, tally the most frequent values, and export to reference-manager formats.
to_records ¶
to_records(results, query=None)
Normalise a pybliometrics ScopusSearch().results list (named tuples)
or a list of dicts into a tidy :data:RECORD_COLUMNS DataFrame.
Whatever the query type, the columns are the same, so the downstream DOI, diff and analysis helpers can rely on them.
Source code in src/scopusflow/records.py
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 | |
top ¶
top(records, by='source', n=10)
Tally the most frequent sources or authors in a record set.
Source code in src/scopusflow/records.py
56 57 58 59 60 61 62 63 64 65 66 67 68 | |
RECORD_COLUMNS
module-attribute
¶
RECORD_COLUMNS = ['entry_number', 'scopus_id', 'doi', 'title', 'authors', 'year', 'date', 'publication', 'citations', 'query']
to_bibtex ¶
to_bibtex(records)
Render records as a BibTeX string, one @article entry per row, with
citation keys made unique within the export.
Source code in src/scopusflow/export.py
122 123 124 125 126 127 128 129 130 131 | |
to_ris ¶
to_ris(records)
Render records as an RIS string, one JOUR record per row.
Source code in src/scopusflow/export.py
134 135 136 137 138 | |