A bot that allows you to follow and unfollow users on twitter. Also allows you to do many other things.
Branch: master
Clone or download
Latest commit c5b0d98 Sep 2, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore Fix screen_name Aug 19, 2017
README.md fixed message sending Sep 2, 2017
config.json Removed geocode Sep 2, 2017
twitterBot.py fixed message sending Sep 2, 2017
users_messaged.txt Code Cleanup Jan 10, 2017

README.md

Python Twitter Bot

This is a twitter bot that allows you to do automate a variety of twitter tasks!

  1. Follow back users that follow you.
  2. Follow the followers of another user.
  3. Follow users based on a keyword.
  4. Follow users who retweeted a tweet.
  5. Unfollow users that don't follow you back.
  6. Unfollow all users.
  7. Like tweets based on a keyword.
  8. Unlike all of your tweets.
  9. Send a DM to users that follow you.
  10. Get follower and following count.

Prerequisites

You will need tweepy, re and time installed. Simply run the corresponding pip command like:

pip install tweepy

Additionally, you will need to set up your config.json file.

Setting up config.json file

This file is the heart of the bot. You must place your twitter auth info in the auth object. I've labeled what you have to put and where to the best of my abilities.

Note: Make sure to clear all of the other fields if you do not want to follow based on keyword, whitelist, DM, etc! If you do, simply place your words in the corresponding list seperated by quotations and commas like what I have in the file right now.

Todo:

  • Add the ability to unfavorite all tweets.
  • Add a GUI.

Authors

License

This project is licensed under the MIT License.

Acknowledgments/Other

  • Feel free to make edits or to comment on my code so that I can improve!
  • Thanks for reading!