[Tutor] Website monitoring program.

2005-11-21 Thread Adisegna
error but still only makes one pass.  Thanks Message: 1 Date: Sun, 20 Nov 2005 22:26:10 -0500 From: Kent Johnson <[EMAIL PROTECTED]> Subject: Re: [Tutor] Website monitoring program. Cc: tutor@python.org Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset=ISO-8859-1; f

Re: [Tutor] Website monitoring program.

2005-11-21 Thread Ben Vinger
Below is a program I found at http://starship.python.net/crew/neale/ (though it does not seem to be there anymore.) It uses a seperate file for the URLs --- Adisegna <[EMAIL PROTECTED]> wrote: > My question is how to use a loop to go through a > tuple of URLs. Please feel > free to suggest an ea

Re: [Tutor] Website monitoring program.

2005-11-20 Thread Kent Johnson
Adisegna wrote: > How do I get the counting loop to come back around? It makes one pass > fine. How do I get it to come back up and go through again? You have to indent the statement 'count += 1' so it is part of the loop. But you misunderstand the for loop - the count variable is not needed at

[Tutor] Website monitoring program.

2005-11-20 Thread Adisegna
How do I get the counting loop to come back around? It makes one pass fine. How do I get it to come back up and go through again?  Thanks --- import urllib, smtplib urls = ("http://website0.net/imalive.asp",   "http://website1.net/imal

Re: [Tutor] Website monitoring program.

2005-11-20 Thread Liam Clarke-Hutchinson
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kent Johnson Sent: Monday, 21 November 2005 10:25 a.m. Cc: tutor@python.org Subject: Re: [Tutor] Website monitoring program. Adisegna wrote: > > I guess I should keep the same subject line (above) from

Re: [Tutor] Website monitoring program.

2005-11-20 Thread Kent Johnson
Adisegna wrote: > > I guess I should keep the same subject line (above) from now on since my > last few posts (urllib, smtplib) are about the same program. My preference is to start a new subject for each new question. > > My question is how to use a loop to go through a tuple of URLs. Please

[Tutor] Website monitoring program.

2005-11-20 Thread Adisegna
I guess I should keep the same subject line (above) from now on since my last few posts (urllib, smtplib) are about the same program.  My question is how to use a loop to go through a tuple of URLs. Please feel free to suggest an easier way to do the same thing. Here is my rudimentary program so