User:Inge Hoonte/captain tweet: Difference between revisions

From XPUB & Lens-Based wiki
(Created page with "#!/usr/bin/python import twitter import time api = twitter.Api(username='...', password='...') print('Starting...') while 1 == 1: api.PostUpdate(getoutput('uptime')) ...")
 
No edit summary
Line 1: Line 1:
#!/usr/bin/python
#!/usr/bin/python
 
import twitter
import twitter
import time
import time
api = twitter.Api(username='...', password='...')
api = twitter.Api(username='...', password='...')
 
print('Starting...')
print('Starting...')
 
while 1 == 1:
while 1 == 1:
         api.PostUpdate(getoutput('uptime'))
         api.PostUpdate(getoutput('uptime'))
         print(getoutput('uptime'))
         print(getoutput('uptime'))
         time.sleep(3600)
         time.sleep(3600)

Revision as of 08:49, 17 May 2011

#!/usr/bin/python

import twitter
import time
api = twitter.Api(username='...', password='...')

print('Starting...')

while 1 == 1:
       api.PostUpdate(getoutput('uptime'))
       print(getoutput('uptime'))
       time.sleep(3600)