From 55dbfa7a5bccf2933b7237ccdcd82c1bb2c006f2 Mon Sep 17 00:00:00 2001 From: "Jip J. Dekker" Date: Sat, 21 Jun 2014 01:05:34 +0200 Subject: [PATCH] This method can't be static, we need the cfg file --- FourmiCrawler/sources/PubChem.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/FourmiCrawler/sources/PubChem.py b/FourmiCrawler/sources/PubChem.py index 186aff1..18633a0 100644 --- a/FourmiCrawler/sources/PubChem.py +++ b/FourmiCrawler/sources/PubChem.py @@ -62,8 +62,7 @@ class PubChem(Source): Request(url=self.website_pubchem[:-2].replace("\\", "") + self.data_url % cid, callback=self.parse_data)) return requests - @staticmethod - def parse_data(response): + def parse_data(self, response): """ Parse data found in 'Chemical and Physical properties' part of a substance page. :param response: The response with the page to parse