Archived
1
0

fixed config errors due to merge with develop

This commit is contained in:
RTB 2014-06-11 18:39:01 +02:00
parent 830b785b0a
commit 8836cdf16b

View File

@ -21,8 +21,9 @@ class PubChem(Source):
__spider = None
searched_compounds = set()
def __init__(self):
Source.__init__(self)
def __init__(self, config):
Source.__init__(self, config)
self.cfg = config
def parse(self, response):
""" Distributes the above described behaviour """
@ -88,4 +89,4 @@ class PubChem(Source):
def new_compound_request(self, compound):
return Request(url=self.website_www[:-1] + self.search % compound, callback=self.parse)
return Request(url=self.website_www[:-1] + self.search % compound, callback=self.parse)