Python for Series 60 App: QuoteGrab


Posted

in

, ,

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

Quotegrab asking for a stock to look up Initial Content_handler view of the downloaded graph Zooming in using the content_handler controls Zoomed all the way in

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

quotegrab.py

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”

  1. anonymous Avatar
    anonymous

    Hi, on the wiki I can’t find the linnk to the win32 emulator, can you tell me where it is? Thanks.

  2. Matt Croydon Avatar

    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.

  3. Could Avatar
    Could

    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.

  4. hi…

    i agree…

  5. does antivert work effectively…

    adding to my bookmarks… …

  6. wimhjulqafa Avatar

    GN8Rrd nykkrsegbvhq, [URL=http://iovqcjlrexuy.com/]zpawrqilxdvq[/URL], [LINK=http://trckmrpkkktp.com/]xwloacylylbr[/LINK], http://hvpbqgkbxdgn.com/

  7. b22bee6b268b…

    b22bee6b268b12b16267…

  8. Reverse Merger Avatar

    Wish I had a site like this one, I will link back I think my readers would enjoy your site.

  9. yahoo reverse phone look up…

    Great information. I will surely drop by ” Haleigh Cummings, Caylee Anthony, Somer Thompson – BNN … again soon….

  10. Resan Avatar

    i’ve checked this site a few times now and i have to say that i find it quite great actually. keep it up! 🙂

  11. Resguiden Avatar

    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! 🙂

  12. Resguider Avatar

    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. =)

  13. vyvoz stroitelnogo musora spb…

    vyvoz musora…

  14. black ops Avatar

    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! 😉

  15. Resor Avatar

    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! 🙂

  16. Resa Avatar

    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. 😀