pyTweetBot.find_retweets¶
Find tweets to retweet accordingly to parameters set in the config file.
pyTweetBot.find_retweets module¶
-
pyTweetBot.find_retweets.
find_retweets
(config, model_file, action_scheduler, text_size=80, threshold=0.5)¶ Find tweets to retweet from search terms set in the config file.
- Example:
>>> config = BotConfig.load("config.json") >>> action_scheduler = ActionScheduler(config=config) >>> find_retweets(config, "model.p", action_scheduler)
- Arguments:
- config (BotConfig): Bot configuration object of type
pyTweetBot.config.BotConfig
- model_file (str): Path to the file containing the classifier model
- action_scheduler (ActionScheduler): Action scheduler object of type
pyTweetBot.executor.ActionScheduler
- text_size (int): Minimum text length to take a tweet into account
- threshold (float): Minimum to reach to be classified as positive
- config (BotConfig): Bot configuration object of type