Archived
1
0

This method can't be static, we need the cfg file

This commit is contained in:
Jip J. Dekker 2014-06-21 01:05:34 +02:00
parent b0faf80918
commit 55dbfa7a5b

View File

@ -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