import secret
import twitter
import time
import socket

api = twitter.Api(
   consumer_key = secret.dict['consumer_key'],
   consumer_secret = secret.dict['consumer_secret'],
   access_token_key = secret.dict['access_token_key'],
   access_token_secret = secret.dict['access_token_secret']
)

ip = socket.gethostbyname(socket.gethostname())

api.PostUpdate(ip)
