From 65dc75c779066959d4e0f05ceec5ced71f6f640d Mon Sep 17 00:00:00 2001 From: Kyran Beasley Date: Mon, 6 Jul 2015 11:43:13 +1000 Subject: [PATCH] Added documentation and removed unneeded line. --- README.md | 11 +++++++++++ TwitterFollowBot/__init__.py | 3 +-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e476816..ec849b7 100644 --- a/README.md +++ b/README.md @@ -167,8 +167,19 @@ By default, the bot looks up the 100 most recent tweets. You can change this num my_bot = TwitterBot() my_bot.auto_unfollow_nonfollowers() +If there are certain users that you would like to not unfollow, add their user id to the USERS_KEEP_FOLLOWING list. + You will need to manually edit the code if you want to add special users that you will keep following even if they don't follow you back. +####Automatically unfollow all users. + + from TwitterFollowBot import TwitterBot + + my_bot = TwitterBot() + my_bot.auto_unfollow_all_followers() + + + ####Automatically mute all users that you have followed from TwitterFollowBot import TwitterBot diff --git a/TwitterFollowBot/__init__.py b/TwitterFollowBot/__init__.py index 9f90ea8..e227d70 100644 --- a/TwitterFollowBot/__init__.py +++ b/TwitterFollowBot/__init__.py @@ -404,10 +404,9 @@ def auto_unfollow_nonfollowers(self,count=None): self.TWITTER_CONNECTION.friendships.destroy(user_id=user_id) print("Unfollowed %d" % (user_id), file=sys.stdout) - def auto_unfollow_all_followers(self,count=None): """ - Unfollows everyone + Unfollows everyone that you are following(except those who you have specified not to) """ following = self.get_follows_list()