Module Expr Str ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Dict Str Str Str Str Call AttributeLoad AttributeLoad NameLoad attr attr Str Call AttributeLoad AttributeLoad NameLoad attr attr Str Call AttributeLoad AttributeLoad NameLoad attr attr Str Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign AttributeStore NameLoad attr Call NameLoad NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr If Call AttributeLoad AttributeLoad NameLoad attr attr Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr If Call AttributeLoad AttributeLoad NameLoad attr attr Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr If Call AttributeLoad AttributeLoad NameLoad attr attr Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body AugAssignAdd SubscriptStore AttributeLoad NameLoad attr Index Str Num If CompareEq SubscriptLoad AttributeLoad NameLoad attr Index Str SubscriptLoad AttributeLoad NameLoad attr Index Str body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body AugAssignAdd SubscriptStore AttributeLoad NameLoad attr Index Str Num If CompareEq SubscriptLoad AttributeLoad NameLoad attr Index Str SubscriptLoad AttributeLoad NameLoad attr Index Str body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad keyword Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body AugAssignAdd SubscriptStore AttributeLoad NameLoad attr Index Str Num If CompareEq SubscriptLoad AttributeLoad NameLoad attr Index Str SubscriptLoad AttributeLoad NameLoad attr Index Str body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad Str NameLoad If BoolOpAnd NameLoad Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr decorator_list decorator_list
N/A N/A CloseSpider is an extension that forces spiders to be closed after certain
conditions are met.

See documentation in docs/topics/extensions.rst
 collections defaultdict twisted.internet reactor ants signals CloseSpider N/A object N/A __init__ N/A N/A self crawler N/A N/A N/A N/A self crawler crawler N/A N/A self close_on N/A timeout itemcount pagecount errorcount N/A N/A N/A crawler settings getfloat CLOSESPIDER_TIMEOUT N/A N/A N/A crawler settings getint CLOSESPIDER_ITEMCOUNT N/A N/A N/A crawler settings getint CLOSESPIDER_PAGECOUNT N/A N/A N/A crawler settings getint CLOSESPIDER_ERRORCOUNT N/A N/A self counter N/A defaultdict int N/A N/A N/A N/A self close_on get errorcount N/A N/A N/A N/A N/A crawler signals connect N/A self error_count signal N/A signals spider_error N/A N/A N/A N/A self close_on get pagecount N/A N/A N/A N/A N/A crawler signals connect N/A self page_count signal N/A signals response_received N/A N/A N/A N/A self close_on get timeout N/A N/A N/A N/A N/A crawler signals connect N/A self spider_opened signal N/A signals spider_opened N/A N/A N/A N/A self close_on get itemcount N/A N/A N/A N/A N/A crawler signals connect N/A self item_scraped signal N/A signals item_scraped N/A N/A N/A N/A crawler signals connect N/A self spider_closed signal N/A signals spider_closed N/A from_crawler N/A N/A cls crawler N/A N/A N/A N/A cls crawler N/A classmethod error_count N/A N/A self failure response spider N/A N/A N/A N/A N/A self counter N/A errorcount 1 N/A N/A N/A N/A self counter N/A errorcount N/A N/A self close_on N/A errorcount N/A N/A N/A N/A N/A N/A self crawler engine close_spider spider closespider_errorcount N/A page_count N/A N/A self response request spider N/A N/A N/A N/A N/A self counter N/A pagecount 1 N/A N/A N/A N/A self counter N/A pagecount N/A N/A self close_on N/A pagecount N/A N/A N/A N/A N/A N/A self crawler engine close_spider spider closespider_pagecount N/A spider_opened N/A N/A self spider N/A N/A N/A N/A self task N/A N/A reactor callLater N/A N/A self close_on N/A timeout N/A N/A N/A self crawler engine close_spider spider reason closespider_timeout N/A item_scraped N/A N/A self item spider N/A N/A N/A N/A N/A self counter N/A itemcount 1 N/A N/A N/A N/A self counter N/A itemcount N/A N/A self close_on N/A itemcount N/A N/A N/A N/A N/A N/A self crawler engine close_spider spider closespider_itemcount N/A spider_closed N/A N/A self spider N/A N/A N/A task N/A getattr self task False N/A N/A task N/A N/A task active N/A N/A N/A N/A task cancel N/A N/A