Skip to content

Commit

Permalink
Added program link.
Browse files Browse the repository at this point in the history
  • Loading branch information
ruofeidu committed May 4, 2024
1 parent 152d7bc commit 3a6e2bd
Show file tree
Hide file tree
Showing 3 changed files with 3,175 additions and 1 deletion.
5 changes: 4 additions & 1 deletion DuSigchiParser.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def convert_markdown_to_html(file_path):
print(f"Converted {file_path} to {output_file_path}")


def parse(filename_raw, data, indent=0):
def parse(filename_raw, data, indent=0, program='chi', year='2024'):
filename = 'sigchi/' + filename_raw[:-4] + 'md'
with open(filename, 'w', encoding='utf-8') as f:
# Iterate over sessions and extract paper titles, session names, and author names
Expand All @@ -41,11 +41,14 @@ def parse(filename_raw, data, indent=0):
[author['personId'] for author in content['authors']]
]
abstract = content['abstract']
id = content['id']
link = f'https://programs.sigchi.org/{program}/{year}/program/content/{id}'

f.write(f"### {paper_title}\n")
if 'award' in content and content['award']:
f.write(content['award'] + "\n\n")
f.write(f"Authors: {', '.join(authors)}\n\n")
f.write(f"[Link]({link})\n\n")
f.write(f"Abstract: {abstract}\n\n")
f.write('\n\n')

Expand Down
Loading

0 comments on commit 3a6e2bd

Please sign in to comment.