summaryrefslogtreecommitdiff
path: root/scraper/s2-fetch-pdf.py
diff options
context:
space:
mode:
Diffstat (limited to 'scraper/s2-fetch-pdf.py')
-rw-r--r--scraper/s2-fetch-pdf.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/scraper/s2-fetch-pdf.py b/scraper/s2-fetch-pdf.py
index 5477cbd5..30bc5a40 100644
--- a/scraper/s2-fetch-pdf.py
+++ b/scraper/s2-fetch-pdf.py
@@ -31,10 +31,8 @@ def fetch_pdf(paper_id, url):
size = s2.fetch_file(url, pdf_fn)
if size is None:
print("{} empty?".format(paper_id))
- time.sleep(random.randint(5, 10))
return None
print("{} {} kb".format(paper_id, int(size / 1024)))
- time.sleep(random.randint(5, 10))
return
# return paper