from twython import Twython
import time
import random
apiKey = ''
apiSecret = ''
accessToken = ''
accessTokenSecret = ''
while True:
seconds = time.time()
tweet = time.ctime (seconds)
with open("cputemp.txt") as f:
cputempfilecontent = f.readlines()[8]
tweet = tweet + cputempfilecontent
with open("cputemp.txt") as f:
cputempfilecontent = f.readlines()[9]
tweet = tweet + cputempfilecontent
with open("cputemp.txt") as f:
cputempfilecontent = f.readlines()[10]
tweet = tweet + cputempfilecontent
with open("cputemp.txt") as f:
cputempfilecontent = f.readlines()[11]
tweet = tweet + cputempfilecontent
api = Twython(apiKey,apiSecret,accessToken,accessTokenSecret)
api.update_status(status=tweet)
time.sleep(30)