Skip to content

Commit

Permalink
Fix deprecated arxiv method call
Browse files Browse the repository at this point in the history
  • Loading branch information
h4iku authored and mallamanis committed Apr 6, 2024
1 parent 78c0ef3 commit 782a648
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion _publications/add_from_arxiv.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ def _author_lastname(author_name: str) -> str:


def get_info(paper_id: str, out_dir: str) -> None:
client = arxiv.Client()
search = arxiv.Search(id_list=[paper_id])
paper = next(search.results())
paper = next(client.results(search))

summary = (
paper.summary.replace("\n\n", "@@--@@")
Expand Down

0 comments on commit 782a648

Please sign in to comment.