Ignore SSL errors on harpers since the harpers certificate chain is incomplete making it impossible to verify

This commit is contained in:
Kovid Goyal 2017-07-04 23:02:37 +05:30
parent b65f2ccbc0
commit 75c2bd4605
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -56,7 +56,8 @@ class Harpers_full(BasicNewsRecipe):
remove_attributes = ['xmlns']
def get_browser(self):
br = BasicNewsRecipe.get_browser(self)
# harpers ssl certificate is broken as of Jul 2017
br = BasicNewsRecipe.get_browser(self, verify_ssl_certificates=False)
br.open('https://harpers.org/')
if self.username is not None and self.password is not None:
tt = time.localtime() * 1000