import urllib, xml.etree.cElementTree

# change the key and parameters following our documentation - http://www.spock.com/api
data = urllib.urlopen('http://www.spock.com/api/2/search.xml?api_key=115c5ab1fb7dec3a8ce457fee8e6f0eb&query=spock-team&show_blurb=1&sig=3462c6f4692d6977bd8f734c6584b42b').read()

doc=xml.etree.cElementTree.fromstring(data)
for person in doc.findall("./search_results/person"):
  print "\n%s\n   %s\n%s"%("-"*30, person.get("id")  , "-"*30)
  print (person.find("./blurb").text or "<empty blurb>").strip()
