Skip to content

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

Disable dupefilter in shell

Νικόλαος-Διγενής Καραγιάννηςf4dd8bcdc29c
diff --git a/scrapy/commands/shell.py b/scrapy/commands/shell.py
index 92ebbe605..77ae1358b 100644
--- a/scrapy/commands/shell.py
+++ b/scrapy/commands/shell.py
@@ -16,7 +16,11 @@ from scrapy.utils.spider import spidercls_for_request, DefaultSpider
class Command(ScrapyCommand):
requires_project = False
- default_settings = {'KEEP_ALIVE': True, 'LOGSTATS_INTERVAL': 0}
+ default_settings = {
+ 'KEEP_ALIVE': True,
+ 'LOGSTATS_INTERVAL': 0,
+ 'DUPEFILTER_CLASS': 'scrapy.dupefilters.BaseDupeFilter',
+ }
def syntax(self):
return "[url|file]"