Document CrawlSpider.parse_start_urls method

This commit is contained in:
Capi Etheriel 2013-06-09 04:03:20 -03:00
parent 5a097cc192
commit 50fa46d183
1 changed files with 8 additions and 0 deletions

View File

@ -261,6 +261,14 @@ CrawlSpider
described below. If multiple rules match the same link, the first one
will be used, according to the order they're defined in this attribute.
This spider also exposes an overrideable method:
.. method:: parse_start_url(response)
This method is called for the start_urls responses. It allows to parse
the initial responses and must return either a
:class:`~scrapy.item.Item` object, a :class:`~scrapy.http.Request`
object, or an iterable containing any of them.
Crawling rules
~~~~~~~~~~~~~~