rhiever / TwitterFollowBot

A Python bot that automates several actions on Twitter, such as following users and favoriting tweets.
GNU General Public License v3.0
1.31k stars 445 forks source link

Allow a timer to be used for follow actions to avoid breaching Twitter terms of use #43

Closed mgoodfellow closed 9 years ago

mgoodfellow commented 9 years ago

Follow actions tend to be a difficult one when it comes to the Twitter API.

Therefore, this allows a couple of extra configuration fields (FOLLOW_BACKOFF_MIN_SECONDS and FOLLOW_BACKOFF_MAX_SECONDS) to cause the bot to sleep a random interval between the two periods thereby seeming less like a bot.

Also added future functions to allow this to be run on Python < 3 interpreters

rhiever commented 9 years ago

This is great; thank you for the PR! My only hesitation is making this a required feature. I think it would be better as an optional feature. Could you please take it out of the "required parameters" list and add the if statements to only send the bot to sleep if they have the sleep parameters set?

mgoodfellow commented 9 years ago

Hi @rhiever,

Thanks for the feedback - I have removed the timers from the required parameters list, and also refactored a little bit so its a bit more intelligent and robust.

Any more comments are more than welcome!

edworboys commented 9 years ago

+1