Re: WEATHER PROGRAMMING IN PYTHON



On May 31, 8:44 am, Marc 'BlackJack' Rintsch <bj_...@xxxxxxx> wrote:
In <1180618635.925002.282...@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>, sandeep patil
wrote:

how to diplay the weather condiction on my webpage
suppose i want to read weather fromwww.bbc.co.uk/weather.html
how i can read it usin program

It's hard to scrape information about weather from an 404 error page. ;-)

Find some page with actual weather reports or forecasts and use the
BeautifulSoup module to scrape the information you need.

Ciao,
Marc 'BlackJack' Rintsch

It looks like you might even be able to use the rss module from Python
on this sub-page:
http://feeds.bbc.co.uk/weather/feeds/rss/5day/world/0008.xml

See here for more info on RSS with Python:
http://wiki.python.org/moin/RssLibraries

Mike

.