Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

Fix comment typo

Michael Manfre4a2a45b49536
diff --git a/scrapy/contrib/spidermiddleware/offsite.py b/scrapy/contrib/spidermiddleware/offsite.py
index 511becc60..3ce50ae28 100644
--- a/scrapy/contrib/spidermiddleware/offsite.py
+++ b/scrapy/contrib/spidermiddleware/offsite.py
@@ -35,7 +35,7 @@ class OffsiteMiddleware(object):
def should_follow(self, request, spider):
regex = self.host_regex
- # hostanme can be None for wrong urls (like javascript links)
+ # hostname can be None for wrong urls (like javascript links)
host = urlparse_cached(request).hostname or ''
return bool(regex.search(host))