· 5 years ago · May 23, 2020, 03:42 PM
1#!/usr/bin/python3
2import tweepy, time, sys
3#token API di sini
4#There's API Key, from twitter.developer
5CONSUMER_KEY = 'yourConsumerKey'
6CONSUMER_SECRET = 'yourConsumerSecretKey'
7ACCESS_KEY = 'yourAccessKey'
8ACCESS_SECRET = 'yourAccessSecretKEy'
9auth = tweepy.OAuthHandler(CONSUMER_KEY, CONSUMER_SECRET)
10auth.set_access_token(ACCESS_KEY, ACCESS_SECRET)
11api = tweepy.API(auth)
12print("cli twitting -mea")
13while True:
14 twit = str(input("whats going on? "))
15 api.update_status(twit)