Most of the YDN APIs can provide their output in JSON format, which side-steps the problem of having to parse data out of them; the data arrives already converted in to a useful data structure. If the API you are using does not yet offer JSON output you can take advantage of Python's excellent XML support. Using minidom Using ElementTree Further Reading Using minidom The most widely understood API
{{#tags}}- {{label}}
{{/tags}}