Last active
August 29, 2015 14:05
-
-
Save anderZubi/973d6e188eb439ea57a0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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