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

how to limit the number of hastags, followers, unfollowers it scans? #250

Closed navigation12 closed 7 years ago

navigation12 commented 7 years ago

how do i limit the number of hashtags it searches, right now it gets 81 media after search, i want to make it to 10

julien-h2 commented 7 years ago

you get a list of medias, say it's called "medias", if you want the first 10 elements, I guess you can just do this:

first_medias = medias[:10]

drfm commented 7 years ago

Thank's for your reply, julien-h. But could you be so nice and give an example. Maybe how can I modify the infinity_hashtag_liker.py that it will work :-)

BobZombiE69 commented 7 years ago

in ultimate_schedule\ultimate.py

def job4(): bot.follow_followers(get_random(random_user_file),200) #only scan and follow 200 users


in multi_script_cli.py

    elif ans == "2":
        print("""
        1.insert username
        2.use username database
        """)
        if "1" in sys.stdin.readline():
            user_id = input("who?\n").strip()
        else:
            user_id = random.choice(bot.read_list_from_file(users_file))
        bot.follow_followers(user_id,100)  #add nfollows ,100 only scan and follow 100 users
        menu_follow()