pyTweetBot.find_unfollows¶
Find Twitter users to unfollow according to the parameters in the configuration file.
pyTweetBot.find_unfollows module¶
-
pyTweetBot.find_unfollows.
find_unfollows
(config, friends_manager, model_file, action_scheduler, threshold=0.5)¶ Find Twitter users to unfollow according to the parameters in the configuration file.
- Example:
>>> config = BotConfig.load("config.json") >>> action_scheduler = ActionScheduler(config=config) >>> friends_manager = FriendsManager() >>> find_unfollows(config, friends_manager, "model.p", action_scheduler)
- Arguments:
- config (BotConfig): Bot configuration object of type
pyTweetBot.config.BotConfig
- friends_manager (FriendsManager): Friend manager object of type
pyTweetBot.friends.FriendsManager
- model_file (str): Path to the model’s Pickle file.
- action_scheduler (ActionScheduler): Action scheduler object.
- threshold (float): Probability threshold to accept unfollow.
- config (BotConfig): Bot configuration object of type