Skip to content

Instantly share code, notes, and snippets.

View giampaolo44's full-sized avatar

Giampaolo Ferradini giampaolo44

View GitHub Profile
#!/usr/bin/python3
# -*- coding: utf-8 -*-
import xml.etree.ElementTree as ET
def getProperties(entry, ns):
for app_property in entry.findall('apps:property', ns):
name = app_property.attrib['name']
if name in ('forwardTo', 'shouldTrash'):
yield name