mirror of https://github.com/scrapy/scrapy.git
fixed some doc typos reported by phaithful
This commit is contained in:
parent
314a1c2bc2
commit
766c8a4ea8
|
|
@ -347,7 +347,7 @@ Response objects
|
|||
:type status: integer
|
||||
|
||||
:param body: the response body. It must be str, not unicode, unless you're
|
||||
using a encoding-aware :ref:`Response sublcass <ref-response-subclasses>`,
|
||||
using a encoding-aware :ref:`Response subclass <ref-response-subclasses>`,
|
||||
such as :class:`TextResponse`.
|
||||
:type body: str
|
||||
|
||||
|
|
|
|||
|
|
@ -163,7 +163,7 @@ Let's now take a look at an example CrawlSpider with rules::
|
|||
rules = (
|
||||
# Extract links matching 'category.php' (but not matching 'subsection.php')
|
||||
# and follow links from them (since no callback means follow=True by default).
|
||||
Rule(RegexLinkExtractor(allow=('category\.php', ), deny=('subsection\,php', ))),
|
||||
Rule(RegexLinkExtractor(allow=('category\.php', ), deny=('subsection\.php', ))),
|
||||
|
||||
# Extract links matching 'item.php' and parse them with the spider's method parse_item
|
||||
Rule(RegexLinkExtractor(allow=('item\.php', )), callback='parse_item'),
|
||||
|
|
|
|||
Loading…
Reference in New Issue