Scrapy, a fast high-level web crawling & scraping framework for Python.
Fixed minor grammar issues.
David Chen0025d5a9439a
diff --git a/docs/faq.rst b/docs/faq.rstindex 2e61f44ee..3d2bd8d4d 100644--- a/docs/faq.rst+++ b/docs/faq.rst@@ -144,7 +144,7 @@ I get "Filtered offsite request" messages. How can I fix them?Those messages (logged with ``DEBUG`` level) don't necessarily mean there is aproblem, so you may not need to fix them.-Those message are thrown by the Offsite Spider Middleware, which is a spider+Those messages are thrown by the Offsite Spider Middleware, which is a spidermiddleware (enabled by default) whose purpose is to filter out requests todomains outside the ones covered by the spider.diff --git a/docs/topics/broad-crawls.rst b/docs/topics/broad-crawls.rstindex aaf46bc92..79f0b3b53 100644--- a/docs/topics/broad-crawls.rst+++ b/docs/topics/broad-crawls.rst@@ -34,7 +34,7 @@ These are some common properties often found in broad crawls:As said above, Scrapy default settings are optimized for focused crawls, notbroad crawls. However, due to its asynchronous architecture, Scrapy is very-well suited for performing fast broad crawls. This page summarize some things+well suited for performing fast broad crawls. This page summarizes some thingsyou need to keep in mind when using Scrapy for doing broad crawls, along withconcrete suggestions of Scrapy settings to tune in order to achieve anefficient broad crawl.@@ -46,7 +46,7 @@ Concurrency is the number of requests that are processed in parallel. There isa global limit and a per-domain limit.The default global concurrency limit in Scrapy is not suitable for crawling-many different domains in parallel, so you will want to increase it. How much+many different domains in parallel, so you will want to increase it. How muchto increase it will depend on how much CPU you crawler will have available. Agood starting point is ``100``, but the best way to find out is by doing sometrials and identifying at what concurrency your Scrapy process gets CPUdiff --git a/docs/topics/extensions.rst b/docs/topics/extensions.rstindex 11c0aadb6..f9e709514 100644--- a/docs/topics/extensions.rst+++ b/docs/topics/extensions.rst@@ -17,7 +17,7 @@ Extensions use the :ref:`Scrapy settings <topics-settings>` to manage theirsettings, just like any other Scrapy code.It is customary for extensions to prefix their settings with their own name, to-avoid collision with existing (and future) extensions. For example, an+avoid collision with existing (and future) extensions. For example, ahypothetic extension to handle `Google Sitemaps`_ would use settings like`GOOGLESITEMAP_ENABLED`, `GOOGLESITEMAP_DEPTH`, and so on.@@ -143,7 +143,7 @@ Here is the code of such extension::self.items_scraped += 1if self.items_scraped % self.item_count == 0:logger.info("scraped %d items", self.items_scraped)-+.. _topics-extensions-ref:diff --git a/docs/topics/item-pipeline.rst b/docs/topics/item-pipeline.rstindex f74400b4d..28969be61 100644--- a/docs/topics/item-pipeline.rst+++ b/docs/topics/item-pipeline.rst@@ -95,7 +95,7 @@ contain a price::Write items to a JSON file---------------------------The following pipeline stores all scraped items (from all spiders) into a a+The following pipeline stores all scraped items (from all spiders) into asingle ``items.jl`` file, containing one item per line serialized in JSONformat::diff --git a/docs/topics/items.rst b/docs/topics/items.rstindex 21ec0ed8c..4a8f47e93 100644--- a/docs/topics/items.rst+++ b/docs/topics/items.rst@@ -61,7 +61,7 @@ the example above.You can specify any kind of metadata for each field. There is no restriction onthe values accepted by :class:`Field` objects. For this samereason, there is no reference list of all available metadata keys. Each key-defined in :class:`Field` objects could be used by a different components, and+defined in :class:`Field` objects could be used by a different component, andonly those components know about it. You can also define and use any other:class:`Field` key in your project too, for your own needs. The main goal of:class:`Field` objects is to provide a way to define all field metadata in onediff --git a/docs/topics/leaks.rst b/docs/topics/leaks.rstindex 735137ea2..92590c180 100644--- a/docs/topics/leaks.rst+++ b/docs/topics/leaks.rst@@ -97,7 +97,7 @@ subclasses):A real example---------------Let's see a concrete example of an hypothetical case of memory leaks.+Let's see a concrete example of a hypothetical case of memory leaks.Suppose we have some spider with a line similar to this one::return Request("http://www.somenastyspider.com/product.php?pid=%d" % product_id,diff --git a/docs/topics/practices.rst b/docs/topics/practices.rstindex 9ae34f423..60fe2267c 100644--- a/docs/topics/practices.rst+++ b/docs/topics/practices.rst@@ -228,7 +228,7 @@ with varying degrees of sophistication. Getting around those measures can bedifficult and tricky, and may sometimes require special infrastructure. Pleaseconsider contacting `commercial support`_ if in doubt.-Here are some tips to keep in mind when dealing with these kind of sites:+Here are some tips to keep in mind when dealing with these kinds of sites:* rotate your user agent from a pool of well-known ones from browsers (googlearound to get a list of them)diff --git a/docs/topics/selectors.rst b/docs/topics/selectors.rstindex 273cae0f8..8dc82dfe5 100644--- a/docs/topics/selectors.rst+++ b/docs/topics/selectors.rst@@ -579,7 +579,7 @@ Built-in Selectors referenceis used together with ``text``.If ``type`` is ``None`` and a ``response`` is passed, the selector type is- inferred from the response type as follow:+ inferred from the response type as follows:* ``"html"`` for :class:`~scrapy.http.HtmlResponse` type* ``"xml"`` for :class:`~scrapy.http.XmlResponse` type@@ -757,7 +757,7 @@ nodes can be accessed directly by their names::<Selector xpath='//link' data=u'<link xmlns="http://www.w3.org/2005/Atom'>,...-If you wonder why the namespace removal procedure isn't called always by default+If you wonder why the namespace removal procedure isn't always called by defaultinstead of having to call it manually, this is because of two reasons, which, in orderof relevance, are: