logger.debug("Checking %d containers ...", len(containers))
for header in containers:
logger.debug("header[%s]='%s'", type(header), header)
+ table = header.find_next(["ul","table"])
- rows = header.find_next(["ul","table"]).findAll("a")
+ logger.debug("table[]='%s'", type(table))
+ if table is None:
+ logger.warning("No unsorted list or table found,domain='%s' - EXIT!", domain)
+ return peers
+
+ rows = table.findAll("a")
logger.debug("Found %d instance(s) ...", len(rows))
for tag in rows:
logger.debug("tag[]='%s'", type(tag))