Log URL being parsed

This commit is contained in:
Fabio Manganiello 2019-04-13 08:17:45 +00:00
parent 3dd47260d6
commit 9f3f6c9caa
1 changed files with 1 additions and 0 deletions

View File

@ -54,6 +54,7 @@ class HttpWebpagePlugin(Plugin):
if not self.mercury_api_key:
raise RuntimeError("mercury_api_key not set")
self.logger.info('Parsing URL {}'.format(url))
response = requests.get('https://mercury.postlight.com/parser',
params={'url': url},
headers={'x-api-key': self.mercury_api_key})