? Uncover some followers of a private instagram account
I have this private instagram account julianakhao
. I need to get some new tracks from it. Tenai is here to uncover some of its mutual followers* as shown below:
*"Mutual followers" means accounts following and being followed-back by your the target account.
pip install tenai
# Print help
tenai -h/--help
# Usage
tenai -s/--session-id SESSIONID -u/--username USERNAME
-e/--export
--url
-d/--details
>>> from tenai import InstaMutualsChaining
>>> info = InstaMutualsChaining(session_id=SESSIONID)
>>> info.get_data(username=USERNAME)
{"users":[user,user...],"status":"ok","is_recommend_account":False}
*These numbers are approximative, based on the tests I made.
Tenai
comes from privaTE iNstagram chAIning."sources": "[47, 11, 20]"
-> "sources": str(list)
), this technique might be exploiting a prototype in the API that could be changed soon.When you're looking at a private account (on browser or app), there are suggestions of other accounts to follow. The API endpoint in charge of responding the accounts to display (https://i.instagram.com/api/v1/fbsearch/accounts_recs/
), is responding for few weeks some new parameters, such as the following:
"chaining_info": {
"sources": "[11]",
"algorithm": null
}
After many tests, I found out that "sources"
can contain 3 different values with a certain signification for each:
"[11]"
, accounts following and being followed by the target account (mutuals),"[20]"
, your personnal suggestions influenced by your activity,"[47]"
, 2 accounts or more you follow are following this user.The "sources"
values can be additionned, such as "[11, 47]"
, a mutual of your target followed by 2 or more of your friends.
Also, "sources"
value is the pythonic value I'm talking about in more, that seems to be a str(list)
.