Archan commited on
Commit
f6dab54
1 Parent(s): 897c843

Create new file

Browse files
Files changed (1) hide show
  1. get_paper.py +15 -0
get_paper.py ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import arxiv
2
+
3
+
4
+ def get_paper(paper=""):
5
+ id = paper.split(" - ")
6
+ print("id= ", id)
7
+
8
+ paper = next(arxiv.Search(id_list=[id[-1]]).results())
9
+ print("paper title= ", paper.title)
10
+ name = str(paper.title) + '.pdf'
11
+ name = name.replace('?', '')
12
+ name = "downloads/" + name
13
+ paper.download_pdf(filename=name)
14
+
15
+ return(paper)