mirror of https://github.com/scrapy/scrapy.git
Changed BaseRunSpiderCommands to BaseRunSpiderCommand
This commit is contained in:
parent
07e125f4c9
commit
4cdd00e21f
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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}
|
||||
|
|
|
|||
Loading…
Reference in New Issue