Check if a user is following me using Tweepy -
i using tweepy , want create script unfollow don't follow me back. i've created opposite ease:
for user in tweepy.cursor(api.followers).items(): if not user.following: user.follow()
but there seems not property holding whether user following me or not in api.friends
.
you can use api.exists_friendship(user_a, user_b)
. returns true if user_a
follows user_b
.
reference: http://docs.tweepy.org/en/v3.5.0/api.html#api.exists_friendship
Comments
Post a Comment