Python weather application

S

seancron

Does anybody have any suggestions for getting started on desigining a
desktop weather application in Python?

I've been looking for access to weather data and while I have found
several including the weather.com service I've decided to use the
Yahoo! Rss Weather feed since it doesn't have a license like the
weather.com service does. However one problem I have with it is that
it only accepts zip codes or locations ids. So if a user was to enter
the name of the city instead of those two there would be an error. I
could make it so they could only enter in the location code or zip
code but I would really prefer to have it be automatically corrected.
Does anyone have ideas on how to go about this or have an other
suggestions?

Thanks,
Sean
 
Z

Zentrader

Does anybody have any suggestions for getting started on desigining a
desktop weather application in Python?

I've been looking for access to weather data and while I have found
several including the weather.com service I've decided to use the
Yahoo! Rss Weather feed since it doesn't have a license like the
weather.com service does. However one problem I have with it is that
it only accepts zip codes or locations ids. So if a user was to enter
the name of the city instead of those two there would be an error. I
could make it so they could only enter in the location code or zip
code but I would really prefer to have it be automatically corrected.
Does anyone have ideas on how to go about this or have an other
suggestions?

Thanks,
Sean

Use a dictionary to convert from the city chosen to the zip/location
code to use at Yahoo.
 
D

dc

Use a dictionary to convert from the city chosen to the zip/location
code to use at Yahoo.

You can purchase/subscribe a zip code database and then use that as a
reverse look-up for your user entering a city. try the postal service
website for the database info.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Staff online

Members online

Forum statistics

Threads
473,769
Messages
2,569,577
Members
45,052
Latest member
LucyCarper

Latest Threads

Top