#TeCoEd - collect ID data from Twitter
import tweepy

# Authentication details. To  obtain these visit dev.twitter.com
# The consumer keys can be found on your application's Details
# page located at https://dev.twitter.com/apps (under "OAuth settings")
consumer_key= 'xxxxxxxxxxxxxxxx'
consumer_secret= 'xxxxxxxxxxxxxxx'

# The access tokens can be found on your applications's Details
# page located at https://dev.twitter.com/apps (located 
# under "Your access token")
access_token= 'xxxxxxxxxxxxxxxxxxxxxxxxxxxx'
access_token_secret= 'xxxxxxxxxxxxxxxxxxxxxxxxxxQ'



if __name__ == '__main__':
    user = raw_input("Please enter the twitter user data you want collect ") # selct user id

    # Create authentication token
    auth = tweepy.OAuthHandler(consumer_key, consumer_secret)
    auth.set_access_token(access_token, access_token_secret)

    api = tweepy.API(auth)
    
    print ("Getting statistics for", user)

    # Get information about the user
    data = api.get_user(user)
    
    print 'Followers: ' + str(data.followers_count)
    print 'Tweets: ' + str(data.statuses_count)
    print 'Favouries: ' + str(data.favourites_count)
    print 'Friends: ' + str(data.friends_count)
    print 'Appears on ' + str(data.listed_count) + ' lists'
