From bbada0436a6230e577599b11b7099c3539af3f01 Mon Sep 17 00:00:00 2001 From: pictuga Date: Sun, 27 Sep 2020 16:48:22 +0200 Subject: [PATCH] Quick guide to ignore SSL certs --- morss/crawler.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/morss/crawler.py b/morss/crawler.py index 95ce709..4ea4d6a 100644 --- a/morss/crawler.py +++ b/morss/crawler.py @@ -48,6 +48,11 @@ except NameError: basestring = unicode = str +# uncomment the lines below to ignore SSL certs +#import ssl +#ssl._create_default_https_context = ssl._create_unverified_context + + MIMETYPE = { 'xml': ['text/xml', 'application/xml', 'application/rss+xml', 'application/rdf+xml', 'application/atom+xml', 'application/xhtml+xml'], 'rss': ['application/rss+xml', 'application/rdf+xml', 'application/atom+xml'],