WEATHER PROGRAMMING IN PYTHON
kyosohma at gmail.com
kyosohma at gmail.com
Thu May 31 09:53:12 EDT 2007
On May 31, 8:44 am, Marc 'BlackJack' Rintsch <bj_... at gmx.net> wrote:
> In <1180618635.925002.282... at n15g2000prd.googlegroups.com>, 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
More information about the Python-list
mailing list