diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-10-31 01:53:14 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-10-31 01:53:14 +0100 |
| commit | a92337ed2270af9b10806c746dcb4e9fa959ffbb (patch) | |
| tree | 6c681b25079949f06af4bcdf91ddbc7b9b5dbfcc /fetch-entries.py | |
| parent | 2abfcccb08f73773ca8e506f5664fb7b4c877a1f (diff) | |
codingg
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)) |
