mirror of https://github.com/scrapy/scrapy.git
kill AjaxCrawlableMiddlewar.enabled_setting
This commit is contained in:
parent
943a0bd264
commit
ee46ec8920
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue