예제 #1
0
 def job():
     self.action_status.set(ActionState.RUNNING)
     unfollow(device=device_wrapper.get(),
              on_action=on_action,
              storage=storage,
              unfollow_restriction=UnfollowRestriction.ANY,
              session_state=session_state,
              is_limit_reached=is_limit_reached,
              action_status=self.action_status)
     print("Unfollowed any " + str(session_state.totalUnfollowed) +
           ", finish.")
     self.action_status.set(ActionState.DONE)
예제 #2
0
 def job():
     self.action_status.set(ActionState.RUNNING)
     unfollow(device=device_wrapper.get(),
              on_action=on_action,
              storage=storage,
              unfollow_restriction=UnfollowRestriction.
              FOLLOWED_BY_SCRIPT_NON_FOLLOWERS,
              session_state=session_state,
              is_limit_reached=is_limit_reached,
              action_status=self.action_status)
     print("Unfollowed " + str(session_state.totalUnfollowed) +
           " non followers, finish.")
     self.action_status.set(ActionState.DONE)