-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
util to help me keep my cv up-to-date
- Loading branch information
William Cohen
committed
Mar 14, 2024
1 parent
0b07d67
commit 9ef214c
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}.') |