On 22 Dec 2004 09:22:15 -0800, Zhang Le <[EMAIL PROTECTED]> wrote: > Hello, > I'm writing a little Tkinter application to retrieve news from > various news websites such as http://news.bbc.co.uk/, and display them > in a TK listbox. All I want are news title and url information.
Well, the BBC publishes an RSS feed[1], as do most sites like it. You can read RSS feed with Mark Pilgrim's Feed Parser[2]. Granted, you can't read *every* site like this. But I daresay that *most* news related sites publish feeds of some kind these days. Where they do, using the feed is a *far* better idea than trying to parse the HTML. -- Cheers, Simon B, [EMAIL PROTECTED], http://www.brunningonline.net/simon/blog/ [1] http://news.bbc.co.uk/2/hi/help/3223484.stm [2] http://feedparser.org/ -- http://mail.python.org/mailman/listinfo/python-list