diff --git a/Pars_Decathlon/parser.py b/Pars_Decathlon/parser.py index c2832fe..9a9f471 100644 --- a/Pars_Decathlon/parser.py +++ b/Pars_Decathlon/parser.py @@ -2,6 +2,7 @@ from json import load from time import sleep import cloudscraper from os.path import abspath +import certifi # класс парсера с обходом защиты Cloudflare class Parser: @@ -17,6 +18,8 @@ class Parser: # Инициализация scraper с обходом защиты Cloudflare self.scraper = cloudscraper.create_scraper() + import certifi + self.scraper.verify = certifi.where() if self.proxies: self.scraper.proxies.update(self.proxies)