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 447 forks source link

Can someone please show me a sample code just for auto-follow when phrase is found? #104

Open OyeBenny opened 8 years ago

OyeBenny commented 8 years ago

I'm new to GitHub and have no idea how to actually use this code besides filling my info in. Can someone just make a sample one with @Example with instructions on what I do with the code and where do I run it.

Thank you for your patience. I'm new to Python but have everything installed pip wise.

HammadSiddiqui commented 8 years ago

Hi @OyeBenny, assuming that you have successfully created a config.txt following the instructions on the main page of this repo. All you need to do is create a python (.py) file and add then call in the bot instance(s) and the functions you want to run.

an example is attached. This is my bot.py file in the same folder where config.txt resides:

from TwitterFollowBot import TwitterBot

my_bot = TwitterBot()
my_bot.sync_follows()
my_bot.auto_follow("designer", count=1000)