Skip to content

Commit

Permalink
util to help me keep my cv up-to-date
Browse files Browse the repository at this point in the history
  • Loading branch information
William Cohen committed Mar 14, 2024
1 parent 0b07d67 commit 9ef214c
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions pubgen/update-cv.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import datetime
import json
import re



def load_pubs_data():
lines = []
for line in open('pubs.json'):
lines.append(line)
return json.loads("".join(lines))

if __name__ == "__main__":
pubs = load_pubs_data()
for pub in pubs:
if int(pub['year']) >= 2021 and pub['cite'] != "progress":
a = pub['authors']
t = pub['title']
c = pub['cite']
print(f'{a}. {t}. {c}.')

0 comments on commit 9ef214c

Please sign in to comment.