Twitter-Bot is an automation bot using Selenium Automation Framework 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, retweet based on keyword and like tweets on the homepage or like tweets based on keywords.
- Create a
python
virtual environment. - Clone the repo
git clone https://github.com/shubhayu-64/Twitter-Bot.git
or download the repository. - Go to the cloned/downloaded directory
cd Twitter-Bot
- Run
pip3 install selenium
andpip3 install webdriver_manager
- And now you can run the example scripts or create your own scripts.
- To like tweets on the homepage, run
python3 homepage_tweets_like.py
- To like tweets based on keyword, run
python3 keyword_tweets_like.py
- To post a tweet, run
python3 post_tweet.py
- To retweet based on keyword, run
python3 keyword_tweets_retweet.py
- How to stop the script? Ctrl+C (control+C for Mac)
- Script opens browser and nothing happens? Try checking the terminal. It might be asking for credentials.
- For any other problems, feel free to raise an issue.
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.
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.
💙 If you like this project, give it a ⭐ and share it with friends!
☕ Buy me a coffee
Made with ❤️ and Python