def __init__(self, options):
        """Constructs a Crawler instance.

        Args:
            options (:class:`nyawc.Options`): The options to use for the current crawling runtime.

        """

        self.queue = Queue(options)
        self.routing = Routing(options)
        self.__options = options
        self.__should_spawn_new_requests = False
        self.__should_stop = False
        self.__stopping = False
        self.__stopped = False
        self.__threads = {}
        self.__lock = threading.Lock()

        signal.signal(signal.SIGINT, self.__signal_handler)
        DebugHelper.setup(self.__options)
def __init__ ( self , options ) : self . queue = Queue ( options ) self . routing = Routing ( options ) self . __options = options self . __should_spawn_new_requests = False self . __should_stop = False self . __stopping = False self . __stopped = False self . __threads = { } self . __lock = threading . Lock ( ) signal . signal ( signal . SIGINT , self . __signal_handler ) DebugHelper . setup ( self . __options )
Constructs a Crawler instance.

        Args:
            options (:class:`nyawc.Options`): The options to use for the current crawling runtime.