Spaces:
Runtime error
Runtime error
File size: 436 Bytes
f6dab54 0c2d204 0a31262 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="./downloads/paper.pdf")
print(name)
return(paper) |