remove readme from the non-solutions
[twitter-api-cdsw-solutions] / solution-followers-1.py
1 # Q Write a program to find out how many people a particular user follows?
2
3 import encoding_fix
4 import tweepy
5 from twitter_authentication import CONSUMER_KEY, CONSUMER_SECRET, ACCESS_TOKEN, ACCESS_TOKEN_SECRET
6
7 auth = tweepy.OAuthHandler(CONSUMER_KEY, CONSUMER_SECRET)
8 auth.set_access_token(ACCESS_TOKEN, ACCESS_TOKEN_SECRET)
9
10 api = tweepy.API(auth)
11
12 user = api.get_user('makoshark')
13
14 print(user.screen_name + " follows " + str(user.friends_count) + " accounts.")
15
16

Benjamin Mako Hill || Want to submit a patch?