chemspider new_compound_request is now PEP-8 compliant
This commit is contained in:
parent
074fbdf9e2
commit
f18f23dfc6
@ -174,8 +174,10 @@ class ChemSpider(Parser):
|
|||||||
structure_url = self.website[:-1] + self.structure % csid
|
structure_url = self.website[:-1] + self.structure % csid
|
||||||
extendedinfo_url = self.website[:-1] + self.extendedinfo % csid
|
extendedinfo_url = self.website[:-1] + self.extendedinfo % csid
|
||||||
log.msg('chemspider URL: %s' % structure_url, level=log.DEBUG)
|
log.msg('chemspider URL: %s' % structure_url, level=log.DEBUG)
|
||||||
return [Request(url=structure_url, callback=self.parse),
|
return [Request(url=structure_url,
|
||||||
Request(url=extendedinfo_url, callback=self.parse_extendedinfo)]
|
callback=self.parse),
|
||||||
|
Request(url=extendedinfo_url,
|
||||||
|
callback=self.parse_extendedinfo)]
|
||||||
|
|
||||||
def new_compound_request(self,compound):
|
def new_compound_request(self,compound):
|
||||||
if compound in self.ignore_list: #TODO: add regular expression
|
if compound in self.ignore_list: #TODO: add regular expression
|
||||||
|
Reference in New Issue
Block a user