Skip to content

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

kill AjaxCrawlableMiddlewar.enabled_setting

Mikhail Korobovee46ec892061
diff --git a/scrapy/contrib/downloadermiddleware/ajaxcrawlable.py b/scrapy/contrib/downloadermiddleware/ajaxcrawlable.py
index 2bd5de59e..c76d1de68 100644
--- a/scrapy/contrib/downloadermiddleware/ajaxcrawlable.py
+++ b/scrapy/contrib/downloadermiddleware/ajaxcrawlable.py
@@ -13,10 +13,8 @@ class AjaxCrawlableMiddleware(object):
For more info see https://developers.google.com/webmasters/ajax-crawling/docs/getting-started.
"""
- enabled_setting = 'AJAXCRAWLABLE_ENABLED'
-
def __init__(self, settings):
- if not settings.getbool(self.enabled_setting):
+ if not settings.getbool('AJAXCRAWLABLE_ENABLED'):
raise NotConfigured
# XXX: Google parses at least first 100k bytes; scrapy's redirect