I have this script and it was working a couple of weeks ago.
Now when i run it nothing is printed out other than white space. WHY???
#!/usr/bin/env python from xml.etree import ElementTree as ET import os import urllib def find_text(element): if element.text is None: for subelement in element: for txt in find_text(subelement): yield txt else: yield element.text feed = urllib.urlopen("http://server-up.theatticnetwork.net/demo/") try: tree = ET.parse(feed) except Exception, inst: print "Unexpected error opening %s: %s" % (tree, inst) root= tree.getroot() for txt in find_text(root): print txt