AutoMark/InstaPy/instapy/instapy.py
def unfollow_users(self,
                       amount=10,
                       onlyInstapyFollowed=False,
                       onlyInstapyMethod='FIFO',
                       sleep_delay=600,
                       onlyNotFollowMe=False):
        """Unfollows (default) 10 users from your following list"""
        self.automatedFollowedPool = set_automated_followed_pool(self.username,
                                                                 self.logger,
                                                                 self.logfolder)

        try:
            unfollowNumber = unfollow(self.browser,
                                      self.username,
                                      amount,
                                      self.dont_include,
                                      onlyInstapyFollowed,
                                      onlyInstapyMethod,
                                      self.automatedFollowedPool,
                                      sleep_delay,
                                      onlyNotFollowMe,
                                      self.logger,
                                      self.logfolder)
            self.logger.info(
                "--> Total people unfollowed : {} ".format(unfollowNumber))
            self.unfollowNumber += unfollowNumber

        except (TypeError, RuntimeWarning) as err:
            if isinstance(err, RuntimeWarning):
                self.logger.warning(
                    u'Warning: {} , stopping unfollow_users'.format(err))
                return self
            else:
                self.logger.info('Sorry, an error occured: {}'.format(err))
                self.aborting = True
                return self

        return self
Unfollows (default) 10 users from your following list
Unfollows (default) 10 users from your following list
Unfollows ( default ) 10 users from your following list
def unfollow_users(self,
                       amount=10,
                       onlyInstapyFollowed=False,
                       onlyInstapyMethod='FIFO',
                       sleep_delay=600,
                       onlyNotFollowMe=False):
        self.automatedFollowedPool = set_automated_followed_pool(self.username,
                                                                 self.logger,
                                                                 self.logfolder)
        try:
            unfollowNumber = unfollow(self.browser,
                                      self.username,
                                      amount,
                                      self.dont_include,
                                      onlyInstapyFollowed,
                                      onlyInstapyMethod,
                                      self.automatedFollowedPool,
                                      sleep_delay,
                                      onlyNotFollowMe,
                                      self.logger,
                                      self.logfolder)
            self.logger.info(
                "--> Total people unfollowed : {} ".format(unfollowNumber))
            self.unfollowNumber += unfollowNumber
        except (TypeError, RuntimeWarning) as err:
            if isinstance(err, RuntimeWarning):
                self.logger.warning(
                    u'Warning: {} , stopping unfollow_users'.format(err))
                return self
            else:
                self.logger.info('Sorry, an error occured: {}'.format(err))
                self.aborting = True
                return self
        return self
def unfollow_users ( self , amount = 10 , onlyInstapyFollowed = False , onlyInstapyMethod = 'FIFO' , sleep_delay = 600 , onlyNotFollowMe = False ) : self . automatedFollowedPool = set_automated_followed_pool ( self . username , self . logger , self . logfolder ) try : unfollowNumber = unfollow ( self . browser , self . username , amount , self . dont_include , onlyInstapyFollowed , onlyInstapyMethod , self . automatedFollowedPool , sleep_delay , onlyNotFollowMe , self . logger , self . logfolder ) self . logger . info ( "--> Total people unfollowed : {} " . format ( unfollowNumber ) ) self . unfollowNumber += unfollowNumber except ( TypeError , RuntimeWarning ) as err : if isinstance ( err , RuntimeWarning ) : self . logger . warning ( u'Warning: {} , stopping unfollow_users' . format ( err ) ) return self else : self . logger . info ( 'Sorry, an error occured: {}' . format ( err ) ) self . aborting = True return self return self
Unfollows (default) 10 users from your following list
Unfollows ( default ) 10 users from your following list
"""Unfollows (default) 10 users from your following list"""
self
amount
onlyInstapyFollowed
onlyInstapyMethod
sleep_delay
onlyNotFollowMe