Revision: 59318
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at September 1, 2012 07:14 by scrapy
Initial Code
# Required import statement for CloseSpider. Note: if intending to limit items, you can pass '--SET CLOSESPIDER_ITEMCOUNT=10' like so: # # scrapy crawl googledir --set CLOSESPIDER_ITEMCOUNT=10 from scrapy.exceptions import CloseSpider raise CloseSpider('reason for closing') # Snippet imported from snippets.scrapy.org (which no longer works) # author: redtricycle # date : Nov 21, 2011
Initial URL
Initial Description
Initial Title
Raising CloseSpider
Initial Tags
Initial Language
Python