#edited from twitter2.py

import tweepy
from twitter_authentication import API_KEY, API_SECRET, ACCESS_TOKEN, ACCESS_TOKEN_SECRET

auth = tweepy.OAuthHandler(API_KEY, API_SECRET)
auth.set_access_token(ACCESS_TOKEN, ACCESS_TOKEN_SECRET)

api = tweepy.API(auth)

#change username to the one you want to know more about
user = api.get_user('mslinlinli')

limit = 100
count = 0

if user.followers_count > limit:
    print user.screen_name + " is a popular person - they have more than " + str(limit) + " followers!"
    
    for friend in user.friends():
        if friend.followers_count > 1000:
            count += 1

    print user.screen_name + " has " + str(count) + " followers that have more than 1000 followers!"
else:
    print user.screen_name + " doesn't have many followers..."



