Skip to content

Instantly share code, notes, and snippets.

View Winawer's full-sized avatar

Steven Hamblin Winawer

View GitHub Profile

Keybase proof

I hereby claim:

To claim this, I am signing this object:

@Winawer
Winawer / convert_bib.py
Last active October 5, 2021 19:21
Import to mendeley from bibdesk
import base64,re
# Replace these filenames with your input and output filenames.
# Or rewrite it to pass filenames on the command line.
infilename = 'replaceme.bib'
outfilename = 'replacemetoo.bib'
r = re.compile("Bdsk-File[^.]*(?P<ending>}}|},)")
with open(infilename,'r') as infile: