Skip to content

Instantly share code, notes, and snippets.

@pvwoods
Created September 23, 2016 19:37
Show Gist options
  • Select an option

  • Save pvwoods/5edcda30a0bd33861975eaa5a6754a0e to your computer and use it in GitHub Desktop.

Select an option

Save pvwoods/5edcda30a0bd33861975eaa5a6754a0e to your computer and use it in GitHub Desktop.
# convert html to KV tuples
meta = [x.split(": ") for x in string.findAll(text=True)]
for a in b:
if len(a) == 2:
result.append(a)
elif len(a) == 1 and result[-1][0] == '':
result[-1][1] = a[0]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment