Introduction
I had 15-20 minutes to kill Wednesday night before class, so I wrote the first fully functional version of this little hack/app. It first prompts the user for a stock ticker symbol (like NOK, AAPL, YHOO). For now it expects your stock ticker symbol to be in uppercase. After the input is received, it grabs a .gif image from Yahoo! Finance, then displays the image using appuifw.content_handler
. Once you are viewing the image you can zoom in, zoom out, and view the image fullscreen.
After I got the basic app working, I took a few minutes here and there over the last few days to work in some basic exception handling. I wasn’t able to catch a TypeException
error thrown from content_handler
, so I have it checking if content was downloaded successfully before launching content_handler
.
Screenshots
The first screenshot is asking for a stock ticker symbol to look up. The second is the initial zoom level when content_handler is called on the downloaded graph. The third screenshot is zoomed in a bit using the content_handler
controls. The last screenshot is a fullscreen view of the graph.
Requirements
- A Series 60 phone, 3650 or newer (tested on N-Gage and 6630)
- Python for Series 60
- GPRS network access (not just WAP access)
Download
Installation
Download quotegrab.py
and transfer it to your phone using Bluetooth, IR, email, or other means. When you open in from your inbox, it will prompt you for installation. If you have an MMC card reader or N-Gage, you can place it in /system/apps/python/my
on your MMC.
License
QuoteGrab is licensed under a BSD-style license.
TODO
While a complete running app, this 62 line Python program does one thing, once, and does it pretty well. I would like to widen the scope of this app in the future to allow you to download and view the graph of the stock over 5 days, 3 months, or any other length of time that Yahoo! Finance offers. I would also like to add the ability to download and display basic stock information such as current price, change, and other vital stats. It would also be really awesome to be able to link to Yahoo! mobile for more information.
Comments
16 responses to “Python for Series 60 App: QuoteGrab”
Hi, on the wiki I can’t find the linnk to the win32 emulator, can you tell me where it is? Thanks.
You want the Series 60 Developer Platform SDK. That includes the win32 emulator. After you have that installed, you will want to grab the Python for Series 60 SDK.
I would suggest the 2nd edition of both SDKs if you are planning to develop for newer device or the 1st edition if you are looking to develop for the 7650/3650/N-Gage/N-Gage QD.
Which sdk and which python sdk should I **EXACTLY** install?
I tried several times and I can’t see the python icon in the emulator.
Will you please tell me the exact name of the 2 sdks?
I really appreciate for it.
hi…
i agree…
does antivert work effectively…
adding to my bookmarks… …
GN8Rrd nykkrsegbvhq, [URL=http://iovqcjlrexuy.com/]zpawrqilxdvq[/URL], [LINK=http://trckmrpkkktp.com/]xwloacylylbr[/LINK], http://hvpbqgkbxdgn.com/
b22bee6b268b…
b22bee6b268b12b16267…
Wish I had a site like this one, I will link back I think my readers would enjoy your site.
yahoo reverse phone look up…
Great information. I will surely drop by ” Haleigh Cummings, Caylee Anthony, Somer Thompson – BNN … again soon….
i’ve checked this site a few times now and i have to say that i find it quite great actually. keep it up! 🙂
i’ve begun to visit this blog a couple of times now and i have to tell you that i find it quite exeptional actually. it’ll be nice to read more in the future! 🙂
continue with the the good work on the blog. I appreciate it. Could maybe use some more updates more often, but i’m quite sure you got other things stuff to do like we all have to do unfortunately. =)
vyvoz stroitelnogo musora spb…
vyvoz musora…
i’ve begun to visit this site a few times now and i have to tell you that i find it quite exeptional actually. continue doing what you’re doing! 😉
i’ve begun to visit this site a few times now and i have to tell you that i find it quite nice actually. keep it up! 🙂
kinda like the article that you have written actually. it really isn’t that simple to discover good posts toactually read (you know READ! and not simply going through it like a zombie before moving on), so cheers man for not wasting my time on the god forsaken internet. 😀