Archived
1
0

chemspider should now only generate new Requests for wikipedia links from 'expert confirmed' synonyms

This commit is contained in:
Rob tB 2014-04-16 15:02:37 +02:00
parent 87282fc572
commit 7fc980befe

View File

@ -25,7 +25,7 @@ class ChemSpider(Parser):
requests.extend(requests_synonyms)
requests_properties = self.parse_properties(sel)
requests.extend(requests_properties)
for wiki_url in sel.xpath('.//a[@title="Wiki"]/@href').extract():
for wiki_url in sel.xpath('.//p[@class="syn"][strong]/a[@title="Wiki"]/@href').extract():
requests.append( Request(url=wiki_url) )
return requests