Skip to content

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

improve OffsiteMiddleware reference docs

Daniel Grana96c3cdbec24e
diff --git a/docs/ref/spider-middleware.rst b/docs/ref/spider-middleware.rst
index e2497b953..ca90a28fb 100644
--- a/docs/ref/spider-middleware.rst
+++ b/docs/ref/spider-middleware.rst
@@ -54,6 +54,12 @@ OffsiteMiddleware
Filters out Requests for URLs outside the domains covered by the spider.
+ This middleware filters out every request whose host names doesn't match
+ :attr:`~scrapy.spider.BaseSpider.domain_name`, or the spider
+ :attr:`~scrapy.spider.BaseSpider.domain_name` prefixed by "www.".
+ Spider can add more domains to exclude using
+ :attr:`~scrapy.spider.BaseSpider.extra_domain_names` attribute.
+
RequestLimitMiddleware
----------------------