예제 #1
0
 def new_auto_mod_like(self):
     if time.time() > self.next_iteration["Like"] and self.like_per_day != 0 \
             and len(self.media_by_tag) > 0:
         # You have media_id to like:
         if self.like_all_exist_media(media_size=1, delay=False):
             # If like go to sleep:
             check_status(self)
             self.next_iteration["Like"] = time.time() + \
                                           self.add_time(self.like_delay)
             # Count this tag likes:
             self.this_tag_like_count += 1
             if self.this_tag_like_count >= self.max_tag_like_count:
                 self.media_by_tag = [0]
         # Del first media_id
         del self.media_by_tag[0]
예제 #2
0
    def Rodar(self):
        ultimaMsg = ""
        check_status(self.bot)
        if self.bot.boostUpdated != True:
            self.bot.mandamsg = '< \n<< \n<<< \n THIS SOFTWARE MUST BE UPDATED,\n PLEASE, UPDATE YOUR INSTABOOST IN \n "https://github.com/andrewsegas/instaboost" !\n>>> \n>> \n>'
            ultimaMsg = self.mostraMsg(ultimaMsg)

        while True:

            uiMain.labelNome.setText(self.bot.user_login)
            uiMain.labelSeguindo.setText(str(self.bot.self_following))
            uiMain.labelSeguidores.setText(str(self.bot.self_follower))
            uiMain.labelLikes.setText(str(self.bot.like_counter))
            uiMain.labelComent.setText(str(self.bot.comments_counter))
            uiMain.labelFollow.setText(str(self.bot.follow_counter))
            uiMain.labelUnfollow.setText(str(self.bot.unfollow_counter))

            # ------------------- Get media_id -------------------
            if len(self.bot.media_by_tag) == 0:
                self.bot.get_media_id_by_tag(random.choice(self.bot.tag_list))
                self.bot.this_tag_like_count = 0
                self.bot.max_tag_like_count = random.randint(
                    1, self.bot.max_like_for_one_tag)
                self.bot.remove_already_liked()
            ultimaMsg = self.mostraMsg(ultimaMsg)
            # ------------------- Like -------------------
            self.bot.new_auto_mod_like()
            ultimaMsg = self.mostraMsg(ultimaMsg)
            # ------------------- Follow -------------------
            self.bot.new_auto_mod_follow()
            ultimaMsg = self.mostraMsg(ultimaMsg)
            # ------------------- Unfollow -------------------
            self.bot.new_auto_mod_unfollow()
            ultimaMsg = self.mostraMsg(ultimaMsg)
            # ------------------- Comment -------------------
            self.bot.new_auto_mod_comments()
            ultimaMsg = self.mostraMsg(ultimaMsg)

            # Bot iteration in 2 sec
            time.sleep(2 * random.random())
예제 #3
0
    ################################

    # 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()
예제 #4
0
def the_bot(id, passw):
    bot = InstaBot(
        login=id,
        password=passw,
        like_per_day=1920,
        comments_per_day=0,
        tag_list=[
            'tippermusic', 'dubstep', 'edcvegas', 'ootd', 'spotify',
            'spotifyplaylist', 'spotifypremium', 'fasionable', 'fashionnova',
            'fav', 'ultramusicfestival'
        ],
        tag_blacklist=['rain', 'thunderstorm'],
        user_blacklist={},
        max_like_for_one_tag=170,
        follow_per_day=0,
        follow_time=1 * 5,
        unfollow_per_day=0,
        unfollow_break_min=15,
        unfollow_break_max=30,
        log_mod=0,
        proxy='',
        # List of list of words, each of which will be used to generate comment
        # For example: "This shot feels wow!"
        comment_list=[["this", "the", "your"],
                      ["photo", "picture", "pic", "shot", "snapshot"],
                      ["is", "looks", "feels", "is really"],
                      [
                          "great", "super", "good", "very good", "good", "wow",
                          "WOW", "cool", "GREAT", "magnificent", "magical",
                          "very cool", "stylish", "beautiful", "so beautiful",
                          "so stylish", "so professional", "lovely",
                          "so lovely", "very lovely", "glorious",
                          "so glorious", "very glorious", "adorable",
                          "excellent", "amazing"
                      ], [".", "..", "...", "!", "!!", "!!!"]],
        # 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!")
예제 #5
0
    ################################

    # 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()
예제 #6
0
def main():
    for i in sys.argv:
        print i
    bot = InstaBot(
        login=sys.argv[1],
        password=sys.argv[2],
        like_per_day=sys.argv[5],
        comments_per_day=sys.argv[9],
        tag_list=sys.argv[10],
        tag_blacklist=sys.argv[8],
        user_blacklist={},
        max_like_for_one_tag=sys.argv[6],
        follow_per_day=sys.argv[3],
        follow_time=sys.argv[4],
        unfollow_per_day=sys.argv[12],
        unfollow_break_min=15,
        unfollow_break_max=30,
        log_mod=0,
        proxy='',
        # List of list of words, each of which will be used to generate comment
        # For example: "This shot feels wow!"
        comment_list=sys.argv[11].strip().split(','),
        # 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=sys.argv[7].strip().split(','),
        unfollow_whitelist=[])
    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!")
예제 #7
0
def bot_fct():

    # create the log print window within frame
    terminalembed()

    username_field = username.get()
    password_field = password.get()
    likes_field = likes.get()
    follows_field = follows.get()
    unfollows_field = unfollows.get()
    tag_field = tag.get()

    bot = InstaBot(login=username_field,
                   password=password_field,
                   like_per_day=likes_field,
                   comments_per_day=0,
                   tag_list=[tag_field],
                   tag_blacklist=[],
                   user_blacklist={},
                   max_like_for_one_tag=25,
                   follow_per_day=follows_field,
                   follow_time=1*10,
                   unfollow_per_day=unfollows_field,
                   unfollow_break_min=45,
                   unfollow_break_max=60,
                   log_mod=0,
                   proxy='',
                   unwanted_username_list=['string1'],
                   unfollow_whitelist=['string1']
                   )

    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 PEOPLE WHO DON'T FOLLOW BACK BASED ON RECENT FEED ONLY")
        #print("##### MODE 4 = MODIFIED MODE : FOLLOW PEOPLE BASED ON RECENT FEED ONLY")
        #print("###### MODE 5 = MODIFIED MODE : JUST UNFOLLOW EVERYBODY, EITHER YOUR FOLLOWER OR NOT")

        # 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

        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!")
예제 #8
0
class instabot(object):

	login = None	password = None

	

	def __init__(self):

		self.login = login

		self.password = password

		self.bot = bot

	

	def bot(self, login=None, password=None):

		bot = InstaBot(login=login,password=password,

		like_per_day=1000,

		comments_per_day=0,

		tag_list=['follow4follow', 'f4f', 'cute', 'l:212999109'],

		tag_blacklist=['rain', 'thunderstorm'],

		user_blacklist={},

		max_like_for_one_tag=50,

		follow_per_day=300,

		follow_time=1 * 60,

		unfollow_per_day=300,

		unfollow_break_min=15,

		unfollow_break_max=30,

		log_mod=0,

		proxy='',

		comment_list=[["this", "the", "your"],["photo", "picture", "pic", "shot", "snapshot"],["is", "looks", "feels", "is really"],["great", "super", "good", "very good", "good", "wow","very cool", "stylish", "beautiful", "so beautiful","so stylish", "so professional", "lovely","so lovely", "very lovely", "glorious","so glorious","very glorious", "adorable", "excellent", "amazing"],[".", "..", "...", "!", "!!", "!!!"]],

		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:

		mode = 0

		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!")