def crawl_index(self, path):
        try:
            status, headers, html_doc = self._http_request(path)
            if status != 200:
                return
            soup = BeautifulSoup(html_doc, "html.parser")
            links = soup.find_all('a')
            for l in links:
                url = l.get('href', '')
                url, depth = self._cal_depth(url)
                if depth <= self.max_depth:
                    self._enqueue(url)
        except Exception, e:
            logging.error(e % 'Exception in crawl_index: %s')
dataset/ETHPy150Open lijiejie/BBScan/BBScan.py/InfoDisScanner.crawl_index/swapped operands of `%`