Spaces:
Runtime error
Runtime error
File size: 417 Bytes
f6dab54 0c2d204 bd71f94 f6dab54 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
import arxiv
def get_paper(paper=""):
if paper:
id = paper.split(" - ")
print("id= ", id)
paper = next(arxiv.Search(id_list=[id[-1]]).results())
print("paper title= ", paper.title)
name = str(paper.title) + '.pdf'
name = name.replace('?', '')
name = "downloads/" + name
paper.download_pdf(filename=name)
print(name)
return(paper) |