diff --git a/docs/ref/request-response.rst b/docs/ref/request-response.rst index d524d0a3b..6631e3270 100644 --- a/docs/ref/request-response.rst +++ b/docs/ref/request-response.rst @@ -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 `, + using a encoding-aware :ref:`Response subclass `, such as :class:`TextResponse`. :type body: str diff --git a/docs/ref/spiders.rst b/docs/ref/spiders.rst index 8a937f12b..8a0af307b 100644 --- a/docs/ref/spiders.rst +++ b/docs/ref/spiders.rst @@ -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'),