This commit is contained in:
Jason Schwarzenberger 2020-11-04 15:04:20 +13:00
parent 9edc8b7cca
commit e6976db25d
3 changed files with 4 additions and 4 deletions

View File

@ -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:

View File

@ -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:

View File

@ -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)