Update arxiv.py
Browse files
arxiv.py
CHANGED
|
@@ -13,6 +13,9 @@ def get_paper(paper_url):
|
|
| 13 |
|
| 14 |
suffix = 'paper-dir/' + eprint_url.replace("https://arxiv.org/e-print/", "")
|
| 15 |
|
|
|
|
|
|
|
|
|
|
| 16 |
# check if the directory exists
|
| 17 |
if os.path.exists(suffix):
|
| 18 |
print("Paper already downloaded, skipping download")
|
|
|
|
| 13 |
|
| 14 |
suffix = 'paper-dir/' + eprint_url.replace("https://arxiv.org/e-print/", "")
|
| 15 |
|
| 16 |
+
if not os.path.exists("paper-dir"):
|
| 17 |
+
call(["mkdir", 'paper-dir'])
|
| 18 |
+
|
| 19 |
# check if the directory exists
|
| 20 |
if os.path.exists(suffix):
|
| 21 |
print("Paper already downloaded, skipping download")
|