Python for Series 60 App: QuoteGrab

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.

8 Responses to “Python for Series 60 App: QuoteGrab”


  1. 1 anonymous Apr 9th, 2005 at 11:08 am

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

  2. 2 Matt Croydon Apr 9th, 2005 at 11:29 am

    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. 3 Could Jun 29th, 2005 at 7:39 am

    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. 4 wimhjulqafa Aug 21st, 2007 at 6:57 am

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

  5. 5 Reverse Merger Jun 8th, 2009 at 9:26 pm

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

  1. 1 blog Trackback on Aug 1st, 2007 at 6:16 am
  2. 2 does antivert work effectively Trackback on Aug 12th, 2007 at 12:30 am
  3. 3 b22bee6b268b Trackback on May 10th, 2008 at 4:17 am

Leave a Reply