def continuing(status): if type(status) == str: api.update_status(status, api.me().status.id)
from t import api # Instance object of User containing the token's owner user data myself = api.me() # Returns own name's user def get_name(): return myself.name # Returns own username def get_username(): return myself.screen_name # Returns user bio def get_description(): return myself.description # Displays tweets from home timeline def timeline(count=10): tl = api.home_timeline(count=count) for tweet in tl: print('\n@' + tweet.author.screen_name, tweet.author.name) print(tweet.text + '\n\n') # Tweet def tweet(status):
from t import api # Instance object of User containing the token's owner user data myself = api.me() # Returns own name's user def get_name(): return myself.name # Returns own username def get_username(): return myself.screen_name # Returns user bio def get_description(): return myself.description # Displays tweets from home timeline def timeline(count=10): tl = api.home_timeline(count=count) for tweet in tl: print('\n@' + tweet.author.screen_name, tweet.author.name) print(tweet.text + '\n\n') # Tweet