pyTweetBot.find_follows

Find Twitter user to follows accordingly to parameters set in the config file.

pyTweetBot.find_follows module

pyTweetBot.find_follows.add_follow_action(action_scheduler, friend)

Add a follow action through the scheduler.

Arguments:
pyTweetBot.find_follows.find_follows(config, model, action_scheduler, friends_manager, text_size, n_pages=20, threshold=0.5)

Find Twitter user to follows accordingly to parameters set in the config file.

Example:
>>> config = BotConfig.load("config.json")
>>> find_follows(config, model, action_scheduler, friends_manager, 50)
Arguments:
  • config: Bot’s configuration object
  • model: Classification model’s file
  • action_scheduler: Action scheduler object
  • friends_manager: Friends manager object
  • text_size: Minimum text size to be accepted
  • n_pages: Number of pages to search for each term
  • threshold: Minimum probability to accept following