minor edits (comments etc.)
This commit is contained in:
parent
34c3a8b4d6
commit
74aa446f40
@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user