blairm
March 5th, 2009, 05:02 PM
Hi,
Working on my first (little) program and just want to make sure I'm going about it the right way - checked in faqs but didn't see an answer.
Trying to write something that checks news web pages and sends an email that notifies of new headlines.
Have been working on the assumption I should break the overall goal into smaller tasks (eg checking the web page every 60 minutes, writing the headlines on the page to a txt file, comparing the latest txt file with the one before and sending new material to a third file, emailing that third file with smtplib etc).
My idea is that I ensure I can make all steps work independently before I glue them together.
Is that the correct way to go, or should I be starting at point A and moving through in order?
[EDIT] Only started playing with Python a week ago, and I had no programming experience before that.
Cheers,
Blair
Working on my first (little) program and just want to make sure I'm going about it the right way - checked in faqs but didn't see an answer.
Trying to write something that checks news web pages and sends an email that notifies of new headlines.
Have been working on the assumption I should break the overall goal into smaller tasks (eg checking the web page every 60 minutes, writing the headlines on the page to a txt file, comparing the latest txt file with the one before and sending new material to a third file, emailing that third file with smtplib etc).
My idea is that I ensure I can make all steps work independently before I glue them together.
Is that the correct way to go, or should I be starting at point A and moving through in order?
[EDIT] Only started playing with Python a week ago, and I had no programming experience before that.
Cheers,
Blair