Beispiel #1
0
def follow_protocol(self):
    limit = random.randint(5, 10)
    while self.follow_counter < limit:
        chooser = 0
        if len(self.user_info_list) > 0:
            chooser = random.randint(0, len(self.user_info_list) - 1)
            self.current_user = self.user_info_list[chooser][0]
            self.current_id = self.user_info_list[chooser][1]
            print('=============== \nCheck profile of ' + self.current_user +
                  '\n===============')
            get_user_info(self, self.current_user)
        else:
            print('xxxxxxx user info list is empty!!! xxxxxxxxx')
            feed_scanner(self)
        if self.is_selebgram != True and self.is_fake_account != True and self.is_active_user != False:
            if self.is_following != True:
                print('Trying to follow : ' + self.current_user +
                      ' with user ID :' + self.current_id)
                self.follow(self.current_id)
                print('delete ' + self.user_info_list[chooser][0] +
                      ' from user info list')
                del self.user_info_list[chooser]
        else:
            print('delete ' + self.user_info_list[chooser][0] +
                  ' from user info list')
            del self.user_info_list[chooser]

        time.sleep(random.randint(13, 26))
Beispiel #2
0
    #print("You choose mode : %i" %(mode))
    #print("CTRL + C to cancel this operation or wait 30 seconds to start")
    #time.sleep(30)

    if mode == 0:
        bot.new_auto_mod()

    elif mode == 1:
        check_status(bot)
        while bot.self_following - bot.self_follower > 200:
            unfollow_protocol(bot)
            time.sleep(10 * 60)
            check_status(bot)
        while bot.self_following - bot.self_follower < 400:
            while len(bot.user_info_list) < 50:
                feed_scanner(bot)
                time.sleep(5 * 60)
                follow_protocol(bot)
                time.sleep(10 * 60)
                check_status(bot)

    elif mode == 2:
        bot.bot_mode = 1
        bot.new_auto_mod()

    elif mode == 3:
        unfollow_protocol(bot)
        time.sleep(10 * 60)

    elif mode == 4:
        feed_scanner(bot)
Beispiel #3
0
    #print("You choose mode : %i" %(mode))
    #print("CTRL + C to cancel this operation or wait 30 seconds to start")
    #time.sleep(30)

    if mode == 0:
        bot.new_auto_mod()

    elif mode == 1:
        check_status(bot)
        while bot.self_following - bot.self_follower > 200:
            unfollow_protocol(bot)
            time.sleep(10 * 60)
            check_status(bot)
        while bot.self_following - bot.self_follower < 400:
            while len(bot.user_info_list) < 50:
                feed_scanner(bot)
                time.sleep(5 * 60)
                follow_protocol(bot)
                time.sleep(10 * 60)
                check_status(bot)

    elif mode == 2:
        bot.bot_mode = 1
        bot.new_auto_mod()

    elif mode == 3:
        unfollow_protocol(bot)
        time.sleep(10 * 60)

    elif mode == 4:
        feed_scanner(bot)
Beispiel #4
0
def scripty():
    bot = InstaBot(

        # lines = sys.stdin.readlines()
        # lines = json.loads(lines[0])
        # lines = lines[0]
        # e = json.loads(lines)
        # print e['password']
        # username = username + e["username"]
        login=username,
        password=password,
        like_per_day=rate,
        comments_per_day=0,
        tag_list=hashtags,
        tag_blacklist=['rain', 'thunderstorm'],
        user_blacklist={},
        max_like_for_one_tag=3,
        log_mod=0,
        proxy='',
        # Use unwanted_username_list to block usernames containing a string
        ## Will do partial matches; i.e. 'mozart' will block 'legend_mozart'
        ### 'free_followers' will be blocked because it contains 'free'
        unwanted_username_list=[
            'second', 'stuff', 'art', 'project', 'love', 'life', 'food',
            'blog', 'free', 'keren', 'photo', 'graphy', 'indo', 'travel',
            'art', 'shop', 'store', 'sex', 'toko', 'jual', 'online', 'murah',
            'jam', 'kaos', 'case', 'baju', 'fashion', 'corp', 'tas', 'butik',
            'grosir', 'karpet', 'sosis', 'salon', 'skin', 'care', 'cloth',
            'tech', 'rental', 'kamera', 'beauty', 'express', 'kredit',
            'collection', 'impor', 'preloved', 'follow', 'follower', 'gain',
            '.id', '_id', 'bags'
        ],
        unfollow_whitelist=['example_user_1', 'example_user_2'])

    while True:

        #print("# MODE 0 = ORIGINAL MODE BY LEVPASHA")
        #print("## MODE 1 = MODIFIED MODE BY KEMONG")
        #print("### MODE 2 = ORIGINAL MODE + UNFOLLOW WHO DON'T FOLLOW BACK")
        #print("#### MODE 3 = MODIFIED MODE : UNFOLLOW USERS WHO DON'T FOLLOW YOU BASED ON RECENT FEED")
        #print("##### MODE 4 = MODIFIED MODE : FOLLOW USERS BASED ON RECENT FEED ONLY")
        #print("###### MODE 5 = MODIFIED MODE : JUST UNFOLLOW EVERYBODY, EITHER YOUR FOLLOWER OR NOT")

        ################################
        ##  WARNING   ###
        ################################

        # DON'T USE MODE 5 FOR A LONG PERIOD. YOU RISK YOUR ACCOUNT FROM GETTING BANNED
        ## USE MODE 5 IN BURST MODE, USE IT TO UNFOLLOW PEOPLE AS MANY AS YOU WANT IN SHORT TIME PERIOD

        mode = 0

        #print("You choose mode : %i" %(mode))
        #print("CTRL + C to cancel this operation or wait 30 seconds to start")
        #time.sleep(30)

        if mode == 0:
            bot.new_auto_mod()

        elif mode == 1:
            check_status(bot)
            while bot.self_following - bot.self_follower > 200:
                unfollow_protocol(bot)
                time.sleep(10 * 60)
                check_status(bot)
            while bot.self_following - bot.self_follower < 400:
                while len(bot.user_info_list) < 50:
                    feed_scanner(bot)
                    time.sleep(5 * 60)
                    follow_protocol(bot)
                    time.sleep(10 * 60)
                    check_status(bot)

        elif mode == 2:
            bot.bot_mode = 1
            bot.new_auto_mod()

        elif mode == 3:
            unfollow_protocol(bot)
            time.sleep(10 * 60)

        elif mode == 4:
            feed_scanner(bot)
            time.sleep(60)
            follow_protocol(bot)
            time.sleep(10 * 60)

        elif mode == 5:
            bot.bot_mode = 2
            unfollow_protocol(bot)

        else:
            print("Wrong mode!")
Beispiel #5
0
    elif mode == 1:
        check_status(bot)
        # Enquanto seguir mais que 200 além dos seguidores:
        # começar a dar unfollow em quem não segue de volta
        # Exemplo: seguindo 1200, com 1000 seguidores
        while bot.self_following - bot.self_follower > 200:
            unfollow_protocol(bot)
            time.sleep(15 * 60) # Espera 15 minutos
            check_status(bot)
        # Enquanto seguir menos que 400 além dos seguidores:
        # ????
        # Exemplo: seguindo 1000, seguidores 1200 
        while bot.self_following - bot.self_follower < 200:
            while len(bot.user_info_list) < 50:
                feed_scanner(bot) # ???
                time.sleep(5 * 60) # Espera 5 minutos
                follow_protocol(bot) # ???
                time.sleep(10 * 60) # Espera 10 minutos
                check_status(bot)

    elif mode == 2:
        bot.bot_mode = 1
        bot.new_auto_mod()

    elif mode == 3:
        unfollow_protocol(bot)
        time.sleep(10 * 60)

    elif mode == 4:
        feed_scanner(bot)