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

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -