iSarabjitDhiman / InstaGPy

InstaGPy is an Instagram Unofficial API to extract data from Instargam Profiles. Scrape data from user's profile like username, userid, bio, email, phone, followers/followings list, profile media, account_type, etc.
MIT License
92 stars 22 forks source link

get_user_basic_details() not working when using multiple accounts #7

Open OlegSavinov opened 5 months ago

OlegSavinov commented 5 months ago

When trying to execute get_user_basic_details() form logged_in instance of InstaGPy - function works. But when instance initialised with sessions from multiple accounts - doesn't. I did a little investigation, function get_user_info returns in this case html instead of object.

Submitting isolated test screenshot, obviously nothing could be changed between cases - they were performed sequentially.

Screenshot 2024-03-23 at 18 30 15
iSarabjitDhiman commented 5 months ago

Yes, its quite normal. They block the guest users quite often. If you try to check an instagram user's profile in an incognito window (guest session) It will not work (if they blocked your IP, dont worry it gets back to normal after a week or so). If it works, then it will work with the script as well. But if you are logged in, you shouldn't be facing any problems.

let me know if you have any other questions, otherwise feel free to close the issue. Thanks.