Scrapy, a fast high-level web crawling & scraping framework for Python.
corrected naming and references in ref/spiders doc
Ismael Carnalesfa8ebd114782
diff --git a/scrapy/trunk/docs/ref/spiders.rst b/scrapy/trunk/docs/ref/spiders.rstindex 795f58869..503a8aa0e 100644--- a/scrapy/trunk/docs/ref/spiders.rst+++ b/scrapy/trunk/docs/ref/spiders.rst@@ -4,7 +4,7 @@Available Spiders=================-.. module:: scrapy.item+.. module:: scrapy.spiderBaseSpider==========@@ -186,7 +186,6 @@ links, and item links, parsing the latter with the *parse_item* method. Foreach item response, some data will be extracted from the HTML using XPath, anda ScrapedItem will be filled with it.-XMLFeedSpider=============@@ -284,19 +283,19 @@ prints them out, and stores some random data in ScrapedItems.CSVFeedSpider=============-.. class:: XMLFeedSpider.CSVFeedSpider+.. class:: CSVFeedSpider-.. warning:: The API of the XMLFeedSpider is not yet stable. Use with caution.+.. warning:: The API of the CSVFeedSpider is not yet stable. Use with caution.This spider is very similar to the XMLFeedSpider, although it iterates throughrows, instead of nodes. It also has other two different attributes:-.. attribute:: XMLFeedSpider.delimiter+.. attribute:: CSVFeedSpider.delimiterA string with the separator character for each field in the CSV fileDefaults to ``','`` (comma).-.. attribute:: XMLFeedSpider.headers+.. attribute:: CSVFeedSpider.headersA list of the rows contained in the file CSV feed which will be used forextracting fields from it.@@ -304,7 +303,7 @@ rows, instead of nodes. It also has other two different attributes:In this spider, the method that gets called in each row iteration ``parse_row``instead of ``parse_item`` (like in :class:`XMLFeedSpider`).-.. method:: XMLFeedSpider.parse_row(response, row)+.. method:: CSVFeedSpider.parse_row(response, row)Receives a response and a dict (representing each row) with a key for eachprovided (or detected) header of the CSV file. This spider also gives thediff --git a/scrapy/trunk/docs/topics/spiders.rst b/scrapy/trunk/docs/topics/spiders.rstindex 6b9fd1235..e7bb67bd8 100644--- a/scrapy/trunk/docs/topics/spiders.rst+++ b/scrapy/trunk/docs/topics/spiders.rst@@ -16,9 +16,9 @@ For spiders, the scraping cycle goes through something like this:those requests.The first requests to perform are obtained by calling the- :meth:`BaseSpider.start_requests` method which (by default) generates+ :meth:`scrapy.spiders.BaseSpider.start_requests` method which (by default) generates:class:`~scrapy.http.Request` for the URLs specified in the- :attr:`BaseSpider.start_urls` and the ``BaseSpider.parse`` method as+ :attr:`scarpy.spiders.BaseSpider.start_urls` and the ``BaseSpider.parse`` method ascallback function for the Requests.2. In the callback function you parse the response (web page) and return an