Skip to content

Commit 782a648

Browse files
h4ikumallamanis
authored andcommitted
Fix deprecated arxiv method call
1 parent 78c0ef3 commit 782a648

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: _publications/add_from_arxiv.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@ def _author_lastname(author_name: str) -> str:
2020

2121

2222
def get_info(paper_id: str, out_dir: str) -> None:
23+
client = arxiv.Client()
2324
search = arxiv.Search(id_list=[paper_id])
24-
paper = next(search.results())
25+
paper = next(client.results(search))
2526

2627
summary = (
2728
paper.summary.replace("\n\n", "@@--@@")

0 commit comments

Comments
 (0)