diff options
Diffstat (limited to 'fetch-entries.py')
| -rw-r--r-- | fetch-entries.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fetch-entries.py b/fetch-entries.py index 4c9915b6..37cd37f9 100644 --- a/fetch-entries.py +++ b/fetch-entries.py @@ -4,7 +4,7 @@ import csv import subprocess import time import random - +import re import click @click.command() @@ -19,9 +19,10 @@ def fetch_entries(index): print(entries_fn) if not os.path.exists(entries_fn): with open(entries_fn, 'w') as f: + t = re.sub(r'\W+', '', title) subprocess.call([ './vendor/scholar.py', - '-t', '-s', title, '--csv', + '-t', '-A', t, '--csv', ], stdout=f) time.sleep(random.randint(20, 32)) |
