Scrapy, a fast high-level web crawling & scraping framework for Python.
Fix a spelling error: ie. → i.e. (#4338)
Akshay Sharma182445f9d961
diff --git a/docs/intro/tutorial.rst b/docs/intro/tutorial.rstindex ee10048b5..798fe4a7a 100644--- a/docs/intro/tutorial.rst+++ b/docs/intro/tutorial.rst@@ -212,7 +212,7 @@ using the :ref:`Scrapy shell <topics-shell>`. Run::.. note::Remember to always enclose urls in quotes when running Scrapy shell from- command-line, otherwise urls containing arguments (ie. ``&`` character)+ command-line, otherwise urls containing arguments (i.e. ``&`` character)will not work.On Windows, use double quotes instead::diff --git a/docs/topics/downloader-middleware.rst b/docs/topics/downloader-middleware.rstindex 3ec6e0c17..a83cedcfd 100644--- a/docs/topics/downloader-middleware.rst+++ b/docs/topics/downloader-middleware.rst@@ -259,8 +259,8 @@ COOKIES_DEBUGDefault: ``False``-If enabled, Scrapy will log all cookies sent in requests (ie. ``Cookie``-header) and all cookies received in responses (ie. ``Set-Cookie`` header).+If enabled, Scrapy will log all cookies sent in requests (i.e. ``Cookie``+header) and all cookies received in responses (i.e. ``Set-Cookie`` header).Here's an example of a log with :setting:`COOKIES_DEBUG` enabled::diff --git a/docs/topics/extensions.rst b/docs/topics/extensions.rstindex 0a7455ec9..dc057f6b6 100644--- a/docs/topics/extensions.rst+++ b/docs/topics/extensions.rst@@ -63,7 +63,7 @@ but disabled unless the :setting:`HTTPCACHE_ENABLED` setting is set.Disabling an extension======================-In order to disable an extension that comes enabled by default (ie. those+In order to disable an extension that comes enabled by default (i.e. thoseincluded in the :setting:`EXTENSIONS_BASE` setting) you must set its order to``None``. For example::@@ -345,7 +345,7 @@ signal is received. The information dumped is the following:After the stack trace and engine status is dumped, the Scrapy process continuesrunning normally.-This extension only works on POSIX-compliant platforms (ie. not Windows),+This extension only works on POSIX-compliant platforms (i.e. not Windows),because the `SIGQUIT`_ and `SIGUSR2`_ signals are not available on Windows.There are at least two ways to send Scrapy the `SIGQUIT`_ signal:@@ -370,7 +370,7 @@ running normally.For more info see `Debugging in Python`_.-This extension only works on POSIX-compliant platforms (ie. not Windows).+This extension only works on POSIX-compliant platforms (i.e. not Windows)... _Python debugger: https://docs.python.org/2/library/pdb.html.. _Debugging in Python: https://pythonconquerstheuniverse.wordpress.com/2009/09/10/debugging-in-python/diff --git a/docs/topics/feed-exports.rst b/docs/topics/feed-exports.rstindex 7481b1a99..1d94807a4 100644--- a/docs/topics/feed-exports.rst+++ b/docs/topics/feed-exports.rst@@ -301,7 +301,7 @@ FEED_STORE_EMPTYDefault: ``False``-Whether to export empty feeds (ie. feeds with no items).+Whether to export empty feeds (i.e. feeds with no items)... setting:: FEED_STORAGESdiff --git a/docs/topics/jobs.rst b/docs/topics/jobs.rstindex 8816a028c..c34ba336b 100644--- a/docs/topics/jobs.rst+++ b/docs/topics/jobs.rst@@ -22,7 +22,7 @@ Job directoryTo enable persistence support you just need to define a *job directory* throughthe ``JOBDIR`` setting. This directory will be for storing all required data to-keep the state of a single job (ie. a spider run). It's important to note that+keep the state of a single job (i.e. a spider run). It's important to note thatthis directory must not be shared by different spiders, or even differentjobs/runs of the same spider, as it's meant to be used for storing the state ofa *single* job.diff --git a/docs/topics/link-extractors.rst b/docs/topics/link-extractors.rstindex 2119cb8f8..8c8019438 100644--- a/docs/topics/link-extractors.rst+++ b/docs/topics/link-extractors.rst@@ -49,7 +49,7 @@ LxmlLinkExtractor:type allow: a regular expression (or list of):param deny: a single regular expression (or list of regular expressions)- that the (absolute) urls must match in order to be excluded (ie. not+ that the (absolute) urls must match in order to be excluded (i.e. notextracted). It has precedence over the ``allow`` parameter. If notgiven (or empty) it won't exclude any links.:type deny: a regular expression (or list of)diff --git a/docs/topics/request-response.rst b/docs/topics/request-response.rstindex 8997a7f19..34cc41a02 100644--- a/docs/topics/request-response.rst+++ b/docs/topics/request-response.rst@@ -664,7 +664,7 @@ Response objects.. attribute:: Response.metaA shortcut to the :attr:`Request.meta` attribute of the- :attr:`Response.request` object (ie. ``self.request.meta``).+ :attr:`Response.request` object (i.e. ``self.request.meta``).Unlike the :attr:`Response.request` attribute, the :attr:`Response.meta`attribute is propagated along redirects and retries, so you will get@@ -760,7 +760,7 @@ TextResponse objects1. the encoding passed in the ``__init__`` method ``encoding`` argument2. the encoding declared in the Content-Type HTTP header. If this- encoding is not valid (ie. unknown), it is ignored and the next+ encoding is not valid (i.e. unknown), it is ignored and the nextresolution mechanism is tried.3. the encoding declared in the response body. The TextResponse classdiff --git a/docs/topics/selectors.rst b/docs/topics/selectors.rstindex 8ec758b0e..c3d431e2a 100644--- a/docs/topics/selectors.rst+++ b/docs/topics/selectors.rst@@ -986,7 +986,7 @@ a :class:`~scrapy.http.HtmlResponse` object like this::sel = Selector(html_response)1. Select all ``<h1>`` elements from an HTML response body, returning a list of- :class:`Selector` objects (ie. a :class:`SelectorList` object)::+ :class:`Selector` objects (i.e. a :class:`SelectorList` object)::sel.xpath("//h1")@@ -1013,7 +1013,7 @@ instantiated with an :class:`~scrapy.http.XmlResponse` object::sel = Selector(xml_response)1. Select all ``<product>`` elements from an XML response body, returning a list- of :class:`Selector` objects (ie. a :class:`SelectorList` object)::+ of :class:`Selector` objects (i.e. a :class:`SelectorList` object)::sel.xpath("//product")diff --git a/docs/topics/settings.rst b/docs/topics/settings.rstindex fa63a5807..5394147da 100644--- a/docs/topics/settings.rst+++ b/docs/topics/settings.rst@@ -248,7 +248,7 @@ CONCURRENT_REQUESTSDefault: ``16``-The maximum number of concurrent (ie. simultaneous) requests that will be+The maximum number of concurrent (i.e. simultaneous) requests that will beperformed by the Scrapy downloader... setting:: CONCURRENT_REQUESTS_PER_DOMAIN@@ -258,7 +258,7 @@ CONCURRENT_REQUESTS_PER_DOMAINDefault: ``8``-The maximum number of concurrent (ie. simultaneous) requests that will be+The maximum number of concurrent (i.e. simultaneous) requests that will beperformed to any single domain.See also: :ref:`topics-autothrottle` and its@@ -272,7 +272,7 @@ CONCURRENT_REQUESTS_PER_IPDefault: ``0``-The maximum number of concurrent (ie. simultaneous) requests that will be+The maximum number of concurrent (i.e. simultaneous) requests that will beperformed to any single IP. If non-zero, the:setting:`CONCURRENT_REQUESTS_PER_DOMAIN` setting is ignored, and this one isused instead. In other words, concurrency limits will be applied per IP, notdiff --git a/docs/topics/signals.rst b/docs/topics/signals.rstindex 886d1b866..d3cfb0307 100644--- a/docs/topics/signals.rst+++ b/docs/topics/signals.rst@@ -141,7 +141,7 @@ item_error.. signal:: item_error.. function:: item_error(item, response, spider, failure)- Sent when a :ref:`topics-item-pipeline` generates an error (ie. raises+ Sent when a :ref:`topics-item-pipeline` generates an error (i.e. raisesan exception), except :exc:`~scrapy.exceptions.DropItem` exception.This signal supports returning deferreds from their handlers.@@ -232,7 +232,7 @@ spider_error.. signal:: spider_error.. function:: spider_error(failure, response, spider)- Sent when a spider callback generates an error (ie. raises an exception).+ Sent when a spider callback generates an error (i.e. raises an exception).This signal does not support returning deferreds from their handlers.diff --git a/scrapy/shell.py b/scrapy/shell.pyindex a23b04df9..1d5341973 100644--- a/scrapy/shell.py+++ b/scrapy/shell.py@@ -173,7 +173,7 @@ def _request_deferred(request):This returns a Deferred whose first pair of callbacks are the requestcallback and errback. The Deferred also triggers when the request- callback/errback is executed (ie. when the request is downloaded)+ callback/errback is executed (i.e. when the request is downloaded)WARNING: Do not call request.replace() until after the deferred is called."""diff --git a/scrapy/utils/misc.py b/scrapy/utils/misc.pyindex cb0ee5af3..a3e55d6ea 100644--- a/scrapy/utils/misc.py+++ b/scrapy/utils/misc.py@@ -37,8 +37,8 @@ def arg_to_iter(arg):def load_object(path):"""Load an object given its absolute object path, and return it.- object can be a class, function, variable or an instance.- path ie: 'scrapy.downloadermiddlewares.redirect.RedirectMiddleware'+ object can be the import path of a class, function, variable or an+ instance, e.g. 'scrapy.downloadermiddlewares.redirect.RedirectMiddleware'"""try:diff --git a/scrapy/utils/request.py b/scrapy/utils/request.pyindex 356753ab5..b8c140a7e 100644--- a/scrapy/utils/request.py+++ b/scrapy/utils/request.py@@ -28,7 +28,7 @@ def request_fingerprint(request, include_headers=None, keep_fragments=False):http://www.example.com/query?cat=222&id=111Even though those are two different URLs both point to the same resource- and are equivalent (ie. they should return the same response).+ and are equivalent (i.e. they should return the same response).Another example are cookies used to store session ids. Suppose thefollowing page is only accessible to authenticated users:diff --git a/scrapy/utils/spider.py b/scrapy/utils/spider.pyindex 72775df5c..e4a2d1ac2 100644--- a/scrapy/utils/spider.py+++ b/scrapy/utils/spider.py@@ -15,7 +15,7 @@ def iterate_spider_output(result):def iter_spider_classes(module):"""Return an iterator over all spider classes defined in the given module- that can be instantiated (ie. which have name)+ that can be instantiated (i.e. which have name)"""# this needs to be imported here until get rid of the spider manager# singleton in scrapy.spider.spidersdiff --git a/sep/sep-003.rst b/sep/sep-003.rstindex 184839525..e6357313d 100644--- a/sep/sep-003.rst+++ b/sep/sep-003.rst@@ -18,7 +18,7 @@ PrerequisitesThis API proposal relies on the following API:-1. instantiating a item with an item instance as its first argument (ie.+1. instantiating a item with an item instance as its first argument (i.e.``item2 = MyItem(item1)``) must return a **copy** of the first iteminstance)2. items can be instantiated using this syntax: ``item = Item(attr1=value1,@@ -78,7 +78,7 @@ Defining an item containing ItemField'svariants2 = ListField(ItemField(Variant), default=[])It's important to note here that the (perhaps most intuitive) way of defining a-Product-Variant relationship (ie. defining a recursive !ItemField) doesn't+Product-Variant relationship (i.e. defining a recursive !ItemField) doesn'twork. For example, this fails to compile:::diff --git a/sep/sep-013.rst b/sep/sep-013.rstindex 5b18b7501..4bc9abd30 100644--- a/sep/sep-013.rst+++ b/sep/sep-013.rst@@ -59,7 +59,7 @@ Global changes to all middlewaresTo be discussed:-1. should we support returning deferreds (ie. ``maybeDeferred``) in middleware+1. should we support returning deferreds (i.e. ``maybeDeferred``) in middlewaremethods?2. should we pass Twisted Failures instead of exceptions to error methods?diff --git a/sep/sep-021.rst b/sep/sep-021.rstindex 628a95dd2..372429791 100644--- a/sep/sep-021.rst+++ b/sep/sep-021.rst@@ -38,7 +38,7 @@ Goals:* simple to manage: adding or removing extensions should be just a matter ofadding or removing lines in a ``scrapy.cfg`` file-* backward compatibility with enabling extension the "old way" (ie. modifying+* backward compatibility with enabling extension the "old way" (i.e. modifyingsettings directly)Non-goals: