Skip to content

Instantly share code, notes, and snippets.

@anderZubi
Last active August 29, 2015 14:05
Show Gist options
  • Save anderZubi/973d6e188eb439ea57a0 to your computer and use it in GitHub Desktop.
Save anderZubi/973d6e188eb439ea57a0 to your computer and use it in GitHub Desktop.
import tweepy, datetime, time
CONSUMER_KEY ="zure_consumer_key"
CONSUMER_SECRET = "zure_consumer_secret"
ACCESS_KEY = "zure_access_key"
ACCESS_SECRET = "zure_access_secret"
def txiokatu_ordua():
auth = tweepy.OAuthHandler(CONSUMER_KEY, CONSUMER_SECRET)
auth.set_access_token(ACCESS_KEY, ACCESS_SECRET)
api = tweepy.API(auth)
status = "{}:{}".format(str(datetime.datetime.now().hour),str(datetime.datetime.now().minute).zfill(2))
api.update_status(status)
while(True):
txiokatu_ordua()
time.sleep(60)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment