Fixed an import error
This commit is contained in:
parent
e0556bbf16
commit
14c27458fc
@ -7,7 +7,7 @@ compounds. [todo] - Add some more useful text here.
|
||||
from twisted.internet import reactor
|
||||
from scrapy.crawler import Crawler
|
||||
from scrapy import log, signals
|
||||
from FourmiCrawler.spiders.Fourmispider import FourmiSpider
|
||||
from FourmiCrawler.spider import FourmiSpider
|
||||
from scrapy.utils.project import get_project_settings
|
||||
|
||||
|
||||
|
@ -2,15 +2,18 @@ from scrapy.spider import Spider
|
||||
|
||||
|
||||
class FourmiSpider(Spider):
|
||||
name = "FourmiSpider"
|
||||
name = "FourmiSpider"
|
||||
|
||||
def __init__(self, compound=None, *args, **kwargs):
|
||||
super(FourmiSpider, self).__init__(*args, **kwargs)
|
||||
def __init__(self, compound=None, *args, **kwargs):
|
||||
super(FourmiSpider, self).__init__(*args, **kwargs)
|
||||
self.synonyms = [compound]
|
||||
|
||||
def parse(self, reponse):
|
||||
# [TODO] - This function should delegate it's functionality to other
|
||||
# parsers.
|
||||
pass
|
||||
|
||||
def add_parser(self, parser):
|
||||
self.parsers.add(parser)
|
||||
def parse(self, reponse):
|
||||
# [TODO] - This function should delegate it's functionality to other
|
||||
# parsers.
|
||||
pass
|
||||
|
||||
|
||||
def add_parser(self, parser):
|
||||
self.parsers.add(parser)
|
||||
|
Reference in New Issue
Block a user