def process_node_and_check_if_is_leaf(self): self.get_current_node().processed_times += 1 return NavigatorTreeWrapper.process_node_and_check_if_is_leaf(self)
def __init__(self, navigator, tree): NavigatorTreeWrapper.__init__(self, navigator, tree)
def _create_crawlers_manager(self, tree, navigators): navigator_wrappers = [] for navigator in navigators: navigator_wrapper = NavigatorTreeWrapper(navigator, tree) navigator_wrappers.append(navigator_wrapper) return CrawlersManager(tree, navigator_wrappers)