This method can't be static, we need the cfg file
This commit is contained in:
parent
b0faf80918
commit
55dbfa7a5b
@ -62,8 +62,7 @@ class PubChem(Source):
|
|||||||
Request(url=self.website_pubchem[:-2].replace("\\", "") + self.data_url % cid, callback=self.parse_data))
|
Request(url=self.website_pubchem[:-2].replace("\\", "") + self.data_url % cid, callback=self.parse_data))
|
||||||
return requests
|
return requests
|
||||||
|
|
||||||
@staticmethod
|
def parse_data(self, response):
|
||||||
def parse_data(response):
|
|
||||||
"""
|
"""
|
||||||
Parse data found in 'Chemical and Physical properties' part of a substance page.
|
Parse data found in 'Chemical and Physical properties' part of a substance page.
|
||||||
:param response: The response with the page to parse
|
:param response: The response with the page to parse
|
||||||
|
Reference in New Issue
Block a user