__init__(self,
navigators,
sentinel,
activity_schedule=None,
log_file_path=None,
state_file_path=None,
save_period=None,
logging_level=40)
(Constructor)
| source code
|
- Parameters:
navigators (list of AbstractTreeNavigators) - list of navigators to be used by the crawler. Each navigator will
be run in a separate thread, thus the number of the threads is
equal to the number of navigators.
sentinel (AbstractNode) - a technical node which will be made parent of the root node.
activity_schedule (AbstractActivitySchedule) - if None, no schedule is used and the program works
until it finishes crawling.
log_file_path - path to the log file. If None, no log file will be
used.
state_file_path - path to the file where the state of the program will be saved. If
None, the state will not be saved.
save_period - time between saving the tree state. If
state_file_path is None, this value is
ignored.
logging_level - one of the logging level constants from logging
|