From a92337ed2270af9b10806c746dcb4e9fa959ffbb Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Wed, 31 Oct 2018 01:53:14 +0100 Subject: codingg --- fetch-entries.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'fetch-entries.py') 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)) -- cgit v1.2.3-70-g09d2