Merge branch 'hotfix/spider-import-error'
This commit is contained in:
commit
a6d3d4a716
@ -7,7 +7,7 @@ compounds. [todo] - Add some more useful text here.
|
|||||||
from twisted.internet import reactor
|
from twisted.internet import reactor
|
||||||
from scrapy.crawler import Crawler
|
from scrapy.crawler import Crawler
|
||||||
from scrapy import log, signals
|
from scrapy import log, signals
|
||||||
from FourmiCrawler.spiders.Fourmispider import FourmiSpider
|
from FourmiCrawler.spider import FourmiSpider
|
||||||
from scrapy.utils.project import get_project_settings
|
from scrapy.utils.project import get_project_settings
|
||||||
|
|
||||||
|
|
||||||
|
@ -2,15 +2,18 @@ from scrapy.spider import Spider
|
|||||||
|
|
||||||
|
|
||||||
class FourmiSpider(Spider):
|
class FourmiSpider(Spider):
|
||||||
name = "FourmiSpider"
|
name = "FourmiSpider"
|
||||||
|
|
||||||
def __init__(self, compound=None, *args, **kwargs):
|
def __init__(self, compound=None, *args, **kwargs):
|
||||||
super(FourmiSpider, self).__init__(*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):
|
def parse(self, reponse):
|
||||||
self.parsers.add(parser)
|
# [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