Changed BaseRunSpiderCommands to BaseRunSpiderCommand

This commit is contained in:
Jay Rajput 2020-05-16 00:25:57 +05:30
parent 07e125f4c9
commit 4cdd00e21f
3 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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

View File

@ -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}