[Tutor] Scheduling Python Execution

Flynn, Stephen (L & P - IT) Steve.Flynn at capita.co.uk
Mon Apr 15 11:35:29 CEST 2013


> I want to write a twitter bot which runs on a specific time. For an
> idea, I'd like to have this twitter bot tweet every sunrise and
> sunset, everyday. Since everyday the sunrise and the sunset time are
> vary, what are the best way to do it?

Have the bot calculate sunrise and sunset for the following day and
re-schedule itself for those times.



This email and any attachment to it are confidential.  Unless you are the intended recipient, you may not use, copy or disclose either the message or any information contained in the message. If you are not the intended recipient, you should delete this email and notify the sender immediately.

Any views or opinions expressed in this email are those of the sender only, unless otherwise stated.  All copyright in any Capita material in this email is reserved.

All emails, incoming and outgoing, may be recorded by Capita and monitored for legitimate business purposes. 

Capita exclude all liability for any loss or damage arising or resulting from the receipt, use or transmission of this email to the fullest extent permitted by law.


More information about the Tutor mailing list