ActivePython and Amara
James
fphsml at gmail.com
Wed Dec 14 06:01:41 EST 2005
If you are having problems installing Amara, ElementTree is another
option
http://effbot.org/downloads/elementtree-1.2.6-20050316.win32.exe
from elementtree import ElementTree as ET
from urllib import urlopen
rss = ET.parse(urlopen('index.xml'))
title = rss.find('//channel/title').text
articles = [item.find('title').text for item in
rss.findall('//channel/item')]
This is quick and dirty. Read this
(http://diveintopython.org/http_web_services/review.html) before you
make the real thing.
More information about the Python-list
mailing list