Open isakurbanov744 opened 1 year ago
Looking at the code, you are not calling get_followers
Provide login, password, session, proxy, etc. to be able to reproduce your case
I am providing login, password and session. I just didn't include them here. But I still get this error.
Hi,
I've same issue, after cl.login I get correct user_id, I can get medias for user_id but when I want get user_following from same user_id error 400
Simple code
from instagrapi import Client
import json
cl = Client()
cl.login('USERNAME', 'PASSWORD')
user_id = cl.user_id_from_username("mypersonnalaccount") # Same Use for login
print("******** %s ********" % user_id)
following = cl.user_following(user_id, amount=20)
Any ideas? Solutions?
Update: No error with cl.user_followers(user_id, amount=20)
You may try the same using Ensta.
pip install ensta
from ensta import Host, NewSessionID
sessionid = NewSessionID("username", "password")
host = Host(sessionid)
followers = host.followers("melon_owe")
for user in followers:
print(user.username) # access any data
I have provided the code below, I get the error for the
get_followers
functionThe error message states:
instagrapi.exceptions.LoginRequired: login_required