diff --git a/apiserver/scrapers/declutter.py b/apiserver/scrapers/declutter.py index 711f34a..45a40e9 100644 --- a/apiserver/scrapers/declutter.py +++ b/apiserver/scrapers/declutter.py @@ -9,7 +9,7 @@ DECLUTTER_API = 'https://declutter.1j.nz/details' def get_html(url): try: - logging.info(f'Declutter Scraper: {url}') + logging.info(f"Declutter Scraper: {url}") details = get_details(url) return details['content'] except: diff --git a/apiserver/scrapers/local.py b/apiserver/scrapers/local.py index 1451f20..0cb4ef2 100644 --- a/apiserver/scrapers/local.py +++ b/apiserver/scrapers/local.py @@ -9,7 +9,7 @@ READ_API = 'http://127.0.0.1:33843/details' def get_html(url): try: - logging.info(f'Local Scraper: {url}') + logging.info(f"Local Scraper: {url}") details = get_details(url) return details['content'] except: diff --git a/apiserver/scrapers/outline.py b/apiserver/scrapers/outline.py index e5d6c2a..ba65047 100644 --- a/apiserver/scrapers/outline.py +++ b/apiserver/scrapers/outline.py @@ -17,7 +17,7 @@ def get_html(url): def get_details(url): try: - logging.info(f'Outline Scraper: {url}') + logging.info(f"Outline Scraper: {url}") params = {'source_url': url} headers = {'Referer': OUTLINE_REFERER} r = requests.get(OUTLINE_API, params=params, headers=headers, timeout=20) @@ -35,4 +35,4 @@ def get_details(url): raise except BaseException as e: logging.error('Problem outlining article: {}'.format(str(e))) - return {} \ No newline at end of file + return {} \ No newline at end of file