Archived
1
0

minor edits (comments etc.)

This commit is contained in:
Bas Vb 2014-04-16 15:27:36 +02:00
parent 34c3a8b4d6
commit 74aa446f40

View File

@ -33,13 +33,12 @@ class WikipediaParser(Parser):
item['value'] = prop_values[i].extract().encode('utf-8')
item['source'] = "Wikipedia"
items.append(item)
#print "new: " + item['attribute']
#print item['value']
items=filter(lambda a: a['value']!='', items)
print "new: " + item['attribute']
print item['value']
items=filter(lambda a: a['value']!='', items) #remove items with an empty value
print items
return items
def new_compound_request(self, compound):
return Request(url=self.website[:-1] + compound, callback=self.parse)