Archived
1
0

chemspider parser now makes new synonym requests with the scraped synonyms

This commit is contained in:
RTB 2014-04-14 01:23:15 +02:00
parent e95df8eaa3
commit 31a63829f8

View File

@ -38,6 +38,10 @@ class ChemSpider(Parser):
for syn in sel.xpath('//p[@class="syn"]/span[@class=""]/text()').extract():
synonyms.append( self.new_synonym( syn, 'low' ) )
for synonym in synonyms:
if synonym['reliability'] == 'high':
self._Parser__spider.get_synonym_requests(synonym['value'])
return requests
def new_synonym(self, name, reliability):