Bug fix
This commit is contained in:
parent
6dd860cfb6
commit
7de29233e0
|
@ -24,7 +24,7 @@ def parse_html(html):
|
||||||
|
|
||||||
keywords = []
|
keywords = []
|
||||||
for h2 in root.findall('.//h2'):
|
for h2 in root.findall('.//h2'):
|
||||||
if h2.text.strip() != 'Displayed objects':
|
if not h2.text or h2.text.strip() != 'Displayed objects':
|
||||||
continue
|
continue
|
||||||
div = h2.getparent()
|
div = h2.getparent()
|
||||||
for keyword_span in div.findall('.//span[@property]'):
|
for keyword_span in div.findall('.//span[@property]'):
|
||||||
|
|
Loading…
Reference in a new issue