"rss_limit" : 50,
"api_limit" : 500,
"theme" : "light",
- "instances_social_api_key": ""
+ "instances_social_api_key": "",
+ "max_crawl_depth" : 500,
+ "min_peers_length" : 100
}
logger.info("Checking %d instance(s) from domain='%s',software='%s' ...", len(peerlist), domain, software)
for instance in peerlist:
logger.debug("instance='%s'", instance)
- if instance is None:
- # Skip "None" types as tidup.domain() cannot parse them
+ if instance is None or instance == "":
+ logger.debug("instance[%s]='%s' is either None or empty - SKIPPED!", type(instance), instance)
continue
logger.debug("instance='%s' - BEFORE!", instance)
instances.update_data(domain)
logger.debug("instance='%s',origin='%s',_DEPTH=%d reached!", instance, origin, _DEPTH)
- if _DEPTH <= 500 and len(peerlist) >= 100:
+ if _DEPTH <= config.get("max_crawl_depth") and len(peerlist) >= config.get("min_peers_length"):
logger.debug("Fetching instance='%s',origin='%s',command='%s',path='%s',_DEPTH=%d ...", instance, domain, command, path, _DEPTH)
fetch_instances(instance, domain, None, command, path)
else: