AutoMark/InstaPy/instapy/instapy.py
def follow_by_list(self, followlist, times=1):
        """Allows to follow by any scrapped list"""
        self.follow_times = times or 0
        if self.aborting:
            return self

        followed = 0

        for acc_to_follow in followlist:
            if acc_to_follow in self.dont_include:
                continue

            if self.follow_restrict.get(acc_to_follow, 0) < self.follow_times:
                followed += follow_given_user(self.browser,
                                              acc_to_follow,
                                              self.follow_restrict,
                                              self.blacklist,
                                              self.logger,
                                              self.logfolder)
                self.followed += followed
                self.logger.info('Followed: {}'.format(str(followed)))
                followed = 0
            else:
                self.logger.info('---> {} has already been followed more than '
                                 '{} times'.format(
                                    acc_to_follow, str(self.follow_times)))
                sleep(1)

        return self
Allows to follow by any scrapped list
Allows to follow by any scrapped list
Allows to follow by any scrapped list
def follow_by_list(self, followlist, times=1):
        self.follow_times = times or 0
        if self.aborting:
            return self
        followed = 0
        for acc_to_follow in followlist:
            if acc_to_follow in self.dont_include:
                continue
            if self.follow_restrict.get(acc_to_follow, 0) < self.follow_times:
                followed += follow_given_user(self.browser,
                                              acc_to_follow,
                                              self.follow_restrict,
                                              self.blacklist,
                                              self.logger,
                                              self.logfolder)
                self.followed += followed
                self.logger.info('Followed: {}'.format(str(followed)))
                followed = 0
            else:
                self.logger.info('---> {} has already been followed more than '
                                 '{} times'.format(
                                    acc_to_follow, str(self.follow_times)))
                sleep(1)
        return self
def follow_by_list ( self , followlist , times = 1 ) : self . follow_times = times or 0 if self . aborting : return self followed = 0 for acc_to_follow in followlist : if acc_to_follow in self . dont_include : continue if self . follow_restrict . get ( acc_to_follow , 0 ) < self . follow_times : followed += follow_given_user ( self . browser , acc_to_follow , self . follow_restrict , self . blacklist , self . logger , self . logfolder ) self . followed += followed self . logger . info ( 'Followed: {}' . format ( str ( followed ) ) ) followed = 0 else : self . logger . info ( '---> {} has already been followed more than ' '{} times' . format ( acc_to_follow , str ( self . follow_times ) ) ) sleep ( 1 ) return self
Allows to follow by any scrapped list
Allows to follow by any scrapped list
"""Allows to follow by any scrapped list"""
self
followlist
times