pyTweetBot.find_tweets

Find tweet from Google News and RSS streams.

pyTweetBot.find_tweets module

pyTweetBot.find_tweets.find_tweets(config, model_file, action_scheduler, n_pages=2, threshold=0.5)

Find tweet from Google News and RSS streams.

Examples:
>>> config = BotConfig.load("config.json")
>>> action_scheduler = ActionScheduler(config=config)
>>> find_tweets(config, "model.p", action_scheduler)
Arguments:
  • config (BotConfig): BotConfig configuration object of type pyTweetBot.config.BotConfig
  • model_file (str): Path to model file for classification
  • action_scheduler (ActionScheduler): Scheduler object of type pyTweetBot.executor.ActionScheduler
  • n_pages (int): Number of pages to analyze
  • threshold (float): Probability threshold to be accepted as tweet