These are two scripts I use to generate clean bib files.
extract_entries_with_tags.py: Extracts the entries with a specific tag from an original bib file and saves the cleaned entries in another bib file. When applicable, journal names are abbreviated (see abbreviations.txt).
The fields to keep are specified in fields_to_keep.json. Note that all fields are kept for entry types not specified in .
The journal abbreviations are specified in abbreviations.txt. Note that journals for which no abbreviation is provided will trigger a warning message and the original journal name will be kept in the new bib file.