diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-10-31 01:44:57 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-10-31 01:44:57 +0100 |
| commit | 2abfcccb08f73773ca8e506f5664fb7b4c877a1f (patch) | |
| tree | fbc49ead2eb87af6b7ab69c4e8d5a15cdce7991b /fetch-entries.py | |
| parent | 26b8d0f08078b6356cdb815aa20ae3154ffe7665 (diff) | |
posers
Diffstat (limited to 'fetch-entries.py')
| -rw-r--r-- | fetch-entries.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/fetch-entries.py b/fetch-entries.py index 027b2955..4c9915b6 100644 --- a/fetch-entries.py +++ b/fetch-entries.py @@ -2,6 +2,8 @@ import os import sys import csv import subprocess +import time +import random import click @@ -21,7 +23,7 @@ def fetch_entries(index): './vendor/scholar.py', '-t', '-s', title, '--csv', ], stdout=f) - sys.exit(1) + time.sleep(random.randint(20, 32)) def read_citation_list(index): @@ -34,3 +36,6 @@ def read_citation_list(index): keys = lines[0] lines = lines[1:] return keys, lines + +if __name__ == '__main__': + fetch_entries() |
