BibParser is a tool to parse, format, merge and export bibtex file.
bib_parser = BibParser(
conflict_shortname=Conflict.compare,
conflict_shortname_compare='title',
# strict_entry_required=True,
)
f1 = BibFile('../recbert-wsdm.bib', parser=bib_parser)
f2 = BibFile('../recbert.bib', parser=bib_parser)
file = BibFile.merge(
'final.bib',
f1, f2,
conflict_shortname=Conflict.compare,
conflict_shortname_compare='title'
)
file.merge(
'a.bib',
selected_attrs=['title', 'author', 'year', 'booktitle', 'journal']
)