User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Python section within the Software Development category of DaniWeb, a massive community of 363,378 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,902 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Python advertiser:
Views: 182 | Replies: 1
Reply
Join Date: Apr 2008
Posts: 12
Reputation: sanoski is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
sanoski sanoski is offline Offline
Newbie Poster

how to?

  #1  
May 16th, 2008
I'm pretty new to programming. I've just been studying a few weeks off and on. I know a little, and I'm learning as I go. Programming is so much fun! I really wish I would have gotten into it years ago, but here's my question. I have a longterm project in mind, and I wont to know if it's feasible and how difficult it will be.

There's an XML feed for my school that some other class designed. It's just a simple idea that lists all classes, room number, and the person with the highest GPA. The feed is set up like this. Each one of the following lines would also be a link to more information about the class, etc.

Economics, Room 216, James Faker, 3.4
Social Studies, Room 231, Brain Fictitious, 3.5

etc, etc

The student also has a picture reference that depicts his GPA based on the number. The picture is basically just a graph. I just want to write a program that uses the information on this feed.

I want it to reach out to this XML feed, record each instance of the above format along with the picture reference of the highest GPA student, download it locally, and then be able to use that information in various was. I figured I'll start by counting each instance. For example, the above would be 2 instances.

Eventually, I want it to be able to cross reference data you've already downloaded, and be able to compare GPA's, etc. It would have a GUI and everything too, but I am trying to keep it simple right now, and just build onto it as I learn.

So lets just say this. How do you grab information from the web, in this case a feed, and then use that in calculations? How would you implement such a project? Would you save the information into a text file? Or would you use something else? Should I study up on SQLite? Maybe I should study classes. I'm just not sure. What would be the most effective technique?
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jul 2006
Posts: 554
Reputation: jrcagle is on a distinguished road 
Rep Power: 3
Solved Threads: 69
jrcagle jrcagle is offline Offline
Posting Pro

Re: how to?

  #2  
May 18th, 2008
You want to learn about classes first. Python is designed to be an object-oriented language for a reason: classes give your program structure and therefore help reduce debugging time.

From there, you will need to learn, probably in this order:

* Tkinter (or wxPython, but Tkinter is easier)
* the pickle module (a good substitute for non-complex SQLite apps)
* the urllib2 module
* XML parsing

Have fun!
Jeff
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb Python Marketplace
Thread Tools Display Modes

Other Threads in the Python Forum

All times are GMT -4. The time now is 12:04 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC