ohld / igbot

🐙 Free scripts, bots and Python API wrapper. Get free followers with our auto like, auto follow and other scripts!
https://hikerapi.com/p/N2P6iqiM
Apache License 2.0
4.72k stars 1.47k forks source link

Feedback required-follow_user_following.py (Request turn 400 error) #650

Closed oguzhankarabulut closed 6 years ago

oguzhankarabulut commented 6 years ago

Please follow the guide below


Before submitting an issue, make sure you have:

Purpose of your issue?


The following sections requests more details for particular types of issues, you can remove any section (the contents between the triple ---) not applicable to your issue.


For a bug report, you must include the Python version used, code that will reproduce the error, and the error log/traceback.

Paste the output of python -V here: Python 2.7.12 Code:

# Example code that will produce the error reported
import argparse
import os
import sys

sys.path.append(os.path.join(sys.path[0], '../'))
from instabot import Bot

parser = argparse.ArgumentParser(add_help=True)
parser.add_argument('-u', type=str, help="username")
parser.add_argument('-p', type=str, help="password")
parser.add_argument('-proxy', type=str, help="proxy")
parser.add_argument('users', type=str, nargs='+', help='users')
args = parser.parse_args()

bot = Bot(max_follows_per_day=2000, filter_business_accounts=False, max_followers_to_follow=750000, min_followers_to_follow=10000, max_followers_to_following_ratio=750000, max_following_to_followers_ratio=2, max_following_to_follow=100000, filter_verified_accounts=False)
bot.login(username=args.u, password=args.p,
          proxy=args.proxy)

for username in args.users:
    bot.follow_following(username)

Error/Debug Log:

I am running to follow_user_following.py example for the follow someone followings. I added some parametres to bot you can see in in the code. I want to follow 2000 users in a day but bot follows 400-450 people after that this value it startes unfollow somebodys and my account following count decreased and reach 260-310 after that this count starts again increase and than start again decrease like a loop. How can i solve this problem?

ikbenignace commented 6 years ago

There is a max to follow 1000 users a day, if your bot follows too fast, instagram will block you, if you want to get the best setting, you need to set the cooldown time on following to 80 seconds. This means it wil follow 45 people per hour, so 1080 per day. This setting will help you to not get banned or blocked. The 'error' you get, will say you account is blocked for following people.

oguzhankarabulut commented 6 years ago

@ikbenignace thanks a lot!

chicco785 commented 6 years ago

@iamjagjeetubhi how to set cooldown time?

thx

oguzhankarabulut commented 6 years ago

@chicco785 if you read the documents you will see how can you set it. I am giving hint now "follow_delay" :)