@verbose
def tweets_by_user_demo(user='NLTK_org', count=200):
 oauth = credsfromfile()
 client = Query(**oauth)
 client.register(TweetWriter())
 client.user_tweets(user, count)

@ verbose def tweets_by_user_demo ( user = 'NLTK_org' , count = 200 ) : oauth = credsfromfile ( ) client = Query ( ** oauth ) client . register ( TweetWriter ( ) ) client . user_tweets ( user , count )
use the rest api to search for past tweets by a given user .