mirror of https://github.com/scrapy/scrapy.git
spelling: canonicalize
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
parent
334f844e58
commit
226c42ad14
|
|
@ -148,7 +148,7 @@ Another example could be for building URL canonicalizers:
|
|||
::
|
||||
|
||||
#!python
|
||||
class CanonializeUrl(LegSpider):
|
||||
class CanonicalizeUrl(LegSpider):
|
||||
|
||||
def process_request(self, request):
|
||||
curl = canonicalize_url(request.url, rules=self.spider.canonicalization_rules)
|
||||
|
|
|
|||
|
|
@ -321,7 +321,7 @@ Another example could be for building URL canonicalizers:
|
|||
::
|
||||
|
||||
#!python
|
||||
class CanonializeUrl(object):
|
||||
class CanonicalizeUrl(object):
|
||||
|
||||
def process_request(self, request, response, spider):
|
||||
curl = canonicalize_url(request.url,
|
||||
|
|
|
|||
Loading…
Reference in New Issue