Scrapy, a fast high-level web crawling & scraping framework for Python.
Doc: remove trailing spaces
Steven Almerotha958e549547f
diff --git a/docs/topics/spiders.rst b/docs/topics/spiders.rstindex af676fccd..d17cea941 100644--- a/docs/topics/spiders.rst+++ b/docs/topics/spiders.rst@@ -24,8 +24,8 @@ For spiders, the scraping cycle goes through something like this:Requests.2. In the callback function, you parse the response (web page) and return either- dicts with extracted data, :class:`~scrapy.item.Item` objects,- :class:`~scrapy.http.Request` objects, or an iterable of these objects.+ dicts with extracted data, :class:`~scrapy.item.Item` objects,+ :class:`~scrapy.http.Request` objects, or an iterable of these objects.Those Requests will also contain a callback (maybethe same) and will then be downloaded by Scrapy and then theirresponse handled by the specified callback.@@ -56,7 +56,7 @@ scrapy.Spidermust inherit (including spiders that come bundled with Scrapy, as well as spidersthat you write yourself). It doesn't provide any special functionality. It justprovides a default :meth:`start_requests` implementation which sends requests from- the :attr:`start_urls` spider attribute and calls the spider's method ``parse``+ the :attr:`start_urls` spider attribute and calls the spider's method ``parse``for each of the resulting responses... attribute:: name@@ -161,7 +161,7 @@ scrapy.Spiderclass MySpider(scrapy.Spider):name = 'myspider'-+def start_requests(self):return [scrapy.FormRequest("http://www.example.com/login",formdata={'user': 'john', 'pass': 'secret'},@@ -247,8 +247,8 @@ Return multiple Requests and items from a single callback::for url in response.xpath('//a/@href').extract():yield scrapy.Request(url, callback=self.parse)--Instead of :attr:`~.start_urls` you can use :meth:`~.start_requests` directly;++Instead of :attr:`~.start_urls` you can use :meth:`~.start_requests` directly;to give data more structure you can use :ref:`topics-items`::import scrapy@@ -257,7 +257,7 @@ to give data more structure you can use :ref:`topics-items`::class MySpider(scrapy.Spider):name = 'example.com'allowed_domains = ['example.com']-+def start_requests(self):yield scrapy.Request('http://www.example.com/1.html', self.parse)yield scrapy.Request('http://www.example.com/2.html', self.parse)@@ -269,7 +269,7 @@ to give data more structure you can use :ref:`topics-items`::for url in response.xpath('//a/@href').extract():yield scrapy.Request(url, callback=self.parse)-+.. _spiderargs:Spider arguments@@ -301,7 +301,7 @@ Spider arguments can also be passed through the Scrapyd ``schedule.json`` API.See `Scrapyd documentation`_... _builtin-spiders:-+Generic Spiders===============