View Full Version : Python for Series 60 App: QuoteGrab (Freeware)



vinumsv
12th January 2008, 09:42
Python for Series 60 App: QuoteGrab

Introduction

I(Matt Croydon) 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.

[Only registered and activated users can see links]

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
* Python for Series 60
* GPRS network access (not just WAP access)

benlhy
12th January 2008, 10:07
Why does the application have a .py extension?

The file name is quotegrab.py

vinumsv
12th January 2008, 11:02
Why does the application have a .py extension?

The file name is quotegrab.py

Because its a Python script bro and you can run this script in your phone if you have Python and PythonShell in your phone :D

ΓΔЅĐΘЛЛУ
12th January 2008, 17:34
I like this bro, quick and simple. Rep+ :D