subzeroid / instagrapi

🔥 The fastest and powerful Python library for Instagram Private API 2024
https://hikerapi.com/p/bkXQlaVe
MIT License
4.21k stars 667 forks source link

[Question] Authorization immediately blocks the user #1101

Open melnichukme opened 1 year ago

melnichukme commented 1 year ago

I have a personal account with which I want to make 5 requests every 5 minutes, but instagram blocks me on the first authorization request. How can I do this using my personal account?

I don't understand instagram security logic. When I open instagram through another phone or browser I have no problem and I can navigate the interface but with this package I am blocked from the first request

any ideas how to solve this problem. I need a list of followers and followers in a private account, so I use my account and follow the account I want to follow

SaeidB commented 1 year ago

I have a personal account with which I want to make 5 requests every 5 minutes, but instagram blocks me on the first authorization request. How can I do this using my personal account?

I don't understand instagram security logic. When I open instagram through another phone or browser I have no problem and I can navigate the interface but with this package I am blocked from the first request

any ideas how to solve this problem. I need a list of followers and followers in a private account, so I use my account and follow the account I want to follow

Hi, dont forget to create a correct Client(), you should add correct device info, And send your code here , the code that you use for Login

What action have you done after login ?

melnichukme commented 1 year ago

i am using docker wrapper. Should I make some settings? can you show an example of working settings?

SaeidB commented 1 year ago

random_agent = ['google', 'redfin', 'Pixel 5', 'qcom', '1080x2340', '440', '12', '31', '244.1.0.19.110', '384108453']

s_local = en_US s_country = US this_timezone = 30600

setting2 = { 'last_login': None, 'device_settings': {'app_version': random_agent[8], 'android_version': int(random_agent[7]), 'android_release': random_agent[6], 'dpi': f'{random_agent[5]}dpi', 'resolution': random_agent[4], 'manufacturer': random_agent[0], 'device': random_agent[1], 'model': random_agent[2], 'cpu': random_agent[3], 'version_code': random_agent[9]}, 'user_agent': f'Instagram {random_agent[8]} Android ({random_agent[7]}/{random_agent[6]}; {random_agent[5]}dpi; {random_agent[4]}; {random_agent[0]}; {random_agent[2]}; {random_agent[1]}; {random_agent[3]}; {s_local}; {random_agent[9]})', 'country': s_country, 'locale': s_local}

cl = Client(settings = setting2)

cl.set_locale(s_local) cl.set_country(s_country) cl.set_timezone_offset(this_timezone) cl.set_proxy(http_proxy) cl.login('dddddddd', 'ddddddddd')

Macerul commented 1 year ago

I have a personal account with which I want to make 5 requests every 5 minutes, but instagram blocks me on the first authorization request. How can I do this using my personal account?

I don't understand instagram security logic. When I open instagram through another phone or browser I have no problem and I can navigate the interface but with this package I am blocked from the first request

any ideas how to solve this problem. I need a list of followers and followers in a private account, so I use my account and follow the account I want to follow

Does instagram block just the account you used for the request or it blocks all the account you try to create next? Like does it 'blacklist' you?