diff --git a/twitter.py b/twitter.py new file mode 100644 index 0000000..f4c834c --- /dev/null +++ b/twitter.py @@ -0,0 +1,24 @@ +from config import twitter +import tweepy +auth = tweepy.OAuthHandler(twitter['consumer_key'], twitter['consumer_secret']) + + + +def tweet(message): + # authentication of access token and secret + auth.set_access_token(twitter['access_token'], twitter['access_token_secret']) + api = tweepy.API(auth) + + # update the status + api.update_status(status = message) + + + +def main(): + print("Nothing to do here") + + + + +if __name__ == '__main__': + main() \ No newline at end of file