Skip to content

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

Changed BaseRunSpiderCommands to BaseRunSpiderCommand

Jay Rajput4cdd00e21f4b
diff --git a/scrapy/commands/__init__.py b/scrapy/commands/__init__.py
index 0ddbf2ca0..81fae089b 100644
--- a/scrapy/commands/__init__.py
+++ b/scrapy/commands/__init__.py
@@ -107,7 +107,7 @@ class ScrapyCommand:
raise NotImplementedError
-class BaseRunSpiderCommands(ScrapyCommand):
+class BaseRunSpiderCommand(ScrapyCommand):
"""
The BaseRunSpiderCommands class inherits the ScrapyCommand class and it Used for
performing common functionality between crawl.py and runspider.py
diff --git a/scrapy/commands/crawl.py b/scrapy/commands/crawl.py
index c39c5a9ef..e1724c1e6 100644
--- a/scrapy/commands/crawl.py
+++ b/scrapy/commands/crawl.py
@@ -1,8 +1,8 @@
-from scrapy.commands import BaseRunSpiderCommands
+from scrapy.commands import BaseRunSpiderCommand
from scrapy.exceptions import UsageError
-class Command(BaseRunSpiderCommands):
+class Command(BaseRunSpiderCommand):
requires_project = True
diff --git a/scrapy/commands/runspider.py b/scrapy/commands/runspider.py
index bd24a369e..befee021b 100644
--- a/scrapy/commands/runspider.py
+++ b/scrapy/commands/runspider.py
@@ -4,7 +4,7 @@ from importlib import import_module
from scrapy.utils.spider import iter_spider_classes
from scrapy.exceptions import UsageError
-from scrapy.commands import BaseRunSpiderCommands
+from scrapy.commands import BaseRunSpiderCommand
def _import_file(filepath):
@@ -23,7 +23,7 @@ def _import_file(filepath):
return module
-class Command(BaseRunSpiderCommands):
+class Command(BaseRunSpiderCommand):
requires_project = False
default_settings = {'SPIDER_LOADER_WARN_ONLY': True}