Skip to content

Latest commit

 

History

History
45 lines (32 loc) · 1.92 KB

README.md

File metadata and controls

45 lines (32 loc) · 1.92 KB

Twitter-Bot

Twitter-Bot is an automation bot using Tweepy Module with Python. This replaces the use of Twitter API as it is costly and takes much time to get access to. You can use it to post tweets, like tweets, and retweet and reply based on hashtags.

How to Install

  1. Create a python virtual environment.
  2. Clone the repo git clone https://github.com/AdityaSeth777/Twitter_Bot.git or download the repository.
  3. Go to the cloned/downloaded directory cd Twitter-Bot
  4. Run pip3 install tweepy 3.7
  5. And now you can run the example scripts or create your own scripts.
  6. Apply for elevated access on Twitter playground.
  7. Extract the Bearer Token and Access Token and Secret keys created with Read, Write, and Direct Messages permissions. 8.Copy them and paste in the required portion of the code (authentication part)

Usage

  • To like tweets on the homepage, run python3 bot.py
  • To like tweets based on keyword, run python3 bot.py
  • To post a tweet, run python3 bot.py
  • To retweet based on keyword, run python3 bot.py

FAQ

  • How to stop the script? Ctrl+C (control+C for Mac)
  • For any other problems, feel free to raise an issue.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

Apache License 2.0 © Aditya Seth

What next?

I will be working on adding feature of finding and following new users. Apart from that I will also add features to perform other tasks on tweets such as sharing on other platforms or messaging someone.

🙋‍♂️ Support

💙 If you like this project, give it a ⭐ and share it with friends!

☕ Buy me a coffee


Made with ❤️ and Python