def parse(self, response):        
        checker = response.request.meta['checker']
        rpt = response.request.meta['rpt']
        
        if checker.checker_type == '4':
            return
        
        try:
            test_select = response.xpath(checker.checker_x_path).extract()
        except __HOLE__:
            self.log('Invalid x_path ({c})!'.format(c=str(checker)), logging.ERROR)
            return
        if len(test_select) == 0:
            self.log("Checker configuration not working (no elements found for xpath on reference url page) ({c})!".format(c=str(checker)), logging.ERROR)
        else:
            if checker.checker_x_path_result == '':
                self.log("Checker configuration working (elements for x_path found on reference url page (no x_path result defined)) ({c}).".format(c=str(checker)), logging.INFO)
            else:
                if test_select[0] != checker.checker_x_path_result:
                    self.log("Checker configuration not working (expected x_path result not found on reference url page) ({c})!".format(c=str(checker)), logging.ERROR)
                else:
                    self.log("Checker configuration working (expected x_path result found on reference url page) ({c}).".format(c=str(checker)), logging.INFO)
dataset/ETHPy150Open holgerd77/django-dynamic-scraper/dynamic_scraper/spiders/checker_test.py/CheckerTest.parse