python - Trying to find follower count in Instagram API -
I followed like to find love count for a particular user if you were using Instagram API Console m: I want to follow the user name with field to output the dragon, as follows, and after that. All I'm getting is the username and that's it. You can use this:
instagram.client import InstagramAPI ACCESS_TOKEN = "access token" API = InstagramAPI (ACCESS_TOKEN = ACCESS_TOKEN) user_info = api.user (user_id) Print user_info "Data": {"username": "data": "i.e.", when I am using the user_id search API console
{"meta": {"code": 200} IGname "" Bio ":" Comment, "Website": "http: // instagram," Profile_picture ":" photo "," FULL_NAME ":" IGRealname "" counts ": {" media "Number 1," followed_by ": No. 2," follows ": No. 3}," id ":" IGUserID "}
user_followers, next_ = APIs user_followed_by () while next_: more_user_followers, next_ = api.user_followed_by (with_next_url = next_) #this you will find all your followers user_followers.extend (more_user_followers) Lane (user_followers) #this followers of you
Comments
Post a Comment