From 8836cdf16b758b86bc1e20402b85b2c3d4b11990 Mon Sep 17 00:00:00 2001 From: RTB Date: Wed, 11 Jun 2014 18:39:01 +0200 Subject: [PATCH] fixed config errors due to merge with develop --- FourmiCrawler/sources/PubChem.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/FourmiCrawler/sources/PubChem.py b/FourmiCrawler/sources/PubChem.py index 6490b20..ab6a99e 100644 --- a/FourmiCrawler/sources/PubChem.py +++ b/FourmiCrawler/sources/PubChem.py @@ -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) \ No newline at end of file + return Request(url=self.website_www[:-1] + self.search % compound, callback=self.parse)