small fixes
This commit is contained in:
parent
e9a5fc08e5
commit
de474fea31
@ -51,10 +51,10 @@ class WikipediaParser(Source):
|
|||||||
items = []
|
items = []
|
||||||
|
|
||||||
# scrape the chembox (wikipedia template)
|
# scrape the chembox (wikipedia template)
|
||||||
parse_chembox(sel,items)
|
items = self.parse_chembox(sel, items)
|
||||||
|
|
||||||
#scrape the drugbox (wikipedia template)
|
#scrape the drugbox (wikipedia template)
|
||||||
parse_drugbox(sel,items)
|
items = self.parse_drugbox(sel, items)
|
||||||
|
|
||||||
items = filter(lambda a: a['value'] != '', items) # remove items with an empty value
|
items = filter(lambda a: a['value'] != '', items) # remove items with an empty value
|
||||||
item_list = self.clean_items(items)
|
item_list = self.clean_items(items)
|
||||||
|
Reference in New Issue
Block a user