mirror of https://github.com/scrapy/scrapy.git
Trim ISpiderLoader.
This commit is contained in:
parent
c7d486b91c
commit
78f6624e85
|
|
@ -14,16 +14,10 @@ warnings.warn(
|
|||
|
||||
|
||||
class ISpiderLoader(Interface):
|
||||
def from_settings(settings):
|
||||
"""Return an instance of the class for the given settings"""
|
||||
def from_settings(settings): ...
|
||||
|
||||
def load(spider_name):
|
||||
"""Return the Spider class for the given spider name. If the spider
|
||||
name is not found, it must raise a KeyError."""
|
||||
def load(spider_name): ...
|
||||
|
||||
def list():
|
||||
"""Return a list with the names of all spiders available in the
|
||||
project"""
|
||||
def list(): ...
|
||||
|
||||
def find_by_request(request):
|
||||
"""Return the list of spiders names that can handle the given request"""
|
||||
def find_by_request(request): ...
|
||||
|
|
|
|||
Loading…
Reference in New Issue