Skip to content

Instantly share code, notes, and snippets.

Created Mar 13, 2009
What would you like to do?
def process_finding(finding):
global elements
d = {}
for element in elements:
result = finding.getElementsByTagName(element)
# Element dne
if len(result) == 0:
d[element] = ""
# get first matching
d[element] = result[0]
return d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment