Communicating with data over the internet
Hello, I am trying to make an app that can get information off the internet and display it within the frame. Any idea where I would start with this in Python?
For example some things I would like to be able to do are:
-Make an app that diplayed weather information from weatherbug
-display time from time.gov rather than system clock
-Stock quotes mabye?
I am fairly good at manipulating data once I can get it but I have never attampted to get it from the internet before. Any help in this area or just a point in the right direction would be greatly appreciated!
Thanks!
-Arimus
Re: Communicating with data over the internet
What i would suggest for what you are looking to do is urllib and urllib2. Both i believe are included in the standard python install. I have used them to download a local online magazine so i could view it on my iPhone, for when finding a hard copy is just to troubling.
the docs to those libs can be found here:
http://www.python.org/doc/2.5.2/lib/module-httplib.html
http://www.python.org/doc/2.5.2/lib/module-urllib.html
http://www.python.org/doc/2.5.2/lib/module-urllib2.html
http://www.voidspace.org.uk/python/a.../urllib2.shtml