def __check_protection(self, html, user_agent, cookie_jar):
     oResponse = None
     if 'cf-browser-verification' in html:
         self.__sUrl = self.__sUrl.replace('https', 'http')
         oResponse = cCFScrape().resolve(self.__sUrl, cookie_jar, user_agent)
     elif 'Blazingfast.io' in html or 'xhr.open("GET","' in html:
         oResponse = cBFScrape().resolve(self.__sUrl, cookie_jar, user_agent)
     return oResponse
예제 #2
0
    def __check_protection(self, html, user_agent, cookie_jar):
        oResponse = None

        if 'cf-browser-verification' in html:
            oResponse = cCFScrape().resolve(self.__sUrl, cookie_jar,
                                            user_agent)
        elif 'Blazingfast.io' in html:
            oResponse = cBFScrape().resolve(self.__sUrl, cookie_jar,
                                            user_agent)

        return oResponse