summaryrefslogtreecommitdiff
path: root/fetch-entries.py
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-10-31 01:53:14 +0100
committerJules Laplace <julescarbon@gmail.com>2018-10-31 01:53:14 +0100
commita92337ed2270af9b10806c746dcb4e9fa959ffbb (patch)
tree6c681b25079949f06af4bcdf91ddbc7b9b5dbfcc /fetch-entries.py
parent2abfcccb08f73773ca8e506f5664fb7b4c877a1f (diff)
codingg
Diffstat (limited to 'fetch-entries.py')
-rw-r--r--fetch-entries.py5
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))