added warning about using 'parse' as callback in crawl spider rules

This commit is contained in:
Pablo Hoffman 2011-04-25 09:30:42 -03:00
parent ecb4f44cbc
commit 678f08bc1b
1 changed files with 5 additions and 0 deletions

View File

@ -239,6 +239,11 @@ Crawling rules
argument and must return a list containing :class:`~scrapy.item.Item` and/or
:class:`~scrapy.http.Request` objects (or any subclass of them).
.. warning:: When writing crawl spider rules, avoid using ``parse`` as
callback, since the :class:`CrawlSpider` uses the ``parse`` method
itself to implement its logic. So if you override the ``parse`` method,
the crawl spider will no longer work.
``cb_kwargs`` is a dict containing the keyword arguments to be passed to the
callback function