class documentation

class InitSpider(Spider): (source)

View In Hierarchy

Base Spider with initialization facilities

Method init_request This function should return one initialization request, with the self.initialized method as callback. When the self.initialized method is called this spider is considered initialized. If you need to perform several requests for initializing your spider, you can do so by using different callbacks...
Method initialized This method must be set as the callback of your last initialization request. See self.init_request() docstring for more info.
Method start_requests Undocumented
Instance Variable _postinit_reqs Undocumented
def init_request(self): (source)

This function should return one initialization request, with the self.initialized method as callback. When the self.initialized method is called this spider is considered initialized. If you need to perform several requests for initializing your spider, you can do so by using different callbacks. The only requirement is that the final callback (of the last initialization request) must be self.initialized. The default implementation calls self.initialized immediately, and means that no initialization is needed. This method should be overridden only when you need to perform requests to initialize your spider

def initialized(self, response=None): (source)

This method must be set as the callback of your last initialization request. See self.init_request() docstring for more info.

def start_requests(self): (source)

Undocumented

_postinit_reqs = (source)

Undocumented