diff --git a/utils/helpers.py b/utils/helpers.py index 2c65a0f..94fe187 100644 --- a/utils/helpers.py +++ b/utils/helpers.py @@ -62,7 +62,7 @@ class WebPage(object): request = urllib.request.Request(self.url, headers=self.headers) page = urllib.request.urlopen(request, timeout=5) headers = page.info() - if headers['content-type'] == "text/html": + if "text/html" in headers['content-type']: self.source = page.read()