Python .NET Productivity
In my previous post, I showed how new I am to Python and fell back into my comfort zone (.NET). Here's the same result using a pure Python approach (4Suite).
from Ft.Xml.Domlette import NonvalidatingReader, PrettyPrint
def showEntries(feedUrl): """Lists the titles of rss items at the given url.""" doc = NonvalidatingReader.parseUri(feedUrl) for node in doc.xpath("//item/title/text()"): PrettyPrint(node)
if __name__ == "__main__": showEntries(sys.argv[1])
Posted by Christian at December 22, 2004 12:30 PM |