Move callback blob; mention errback

This commit is contained in:
Dragon Dave 2013-10-15 12:19:42 +01:00
parent 0ba0d85685
commit a3b711bdea
1 changed files with 9 additions and 7 deletions

View File

@ -33,6 +33,15 @@ Request objects
:param url: the URL of this request
:type url: string
:param callback: the function that will be called with the response of this
request (once its downloaded) as its first parameter. For more information
see :ref:`topics-request-response-ref-request-callback-arguments` below.
If a Request doesn't specify a callback, the spider's
:meth:`~scrapy.spider.BaseSpider.parse` method will be used.
Note that if exceptions are raised during processing, errback is called instead.
:type callback: callable
:param method: the HTTP method of this request. Defaults to ``'GET'``.
:type method: string
@ -101,13 +110,6 @@ Request objects
care, or you will get into crawling loops. Default to ``False``.
:type dont_filter: boolean
:param callback: the function that will be called with the response of this
request (once its downloaded) as its first parameter. For more information
see :ref:`topics-request-response-ref-request-callback-arguments` below.
If a Request doesn't specify a callback, the spider's
:meth:`~scrapy.spider.BaseSpider.parse` method will be used.
:type callback: callable
:param errback: a function that will be called if any exception was
raised while processing the request. This includes pages that failed
with 404 HTTP errors and such. It receives a `Twisted Failure`_ instance