Twit-Bot is a Python script that uses the Tweepy library to like and retweet tweets that contain a specific hashtag.
To use Twit-Bot, you need to have the following:
- Python 3 installed on your machine
- Tweepy library installed (can be installed using pip)
- Twitter API keys and access tokens
- Clone the repository to your local machine:
git clone https://github.com/rajatmjain/Twit-Bot.git
- Install the required packages:
pip install tweepy
-
Create a Twitter developer account and create an app to get the API keys and access tokens.
-
Update the script with your Twitter API keys and access tokens.
To use Twit-Bot, run the following command in your terminal:
python twitBot.py
The script will prompt you to enter a hashtag and the number of tweets you wish to like. It will then like and retweet the tweets that match the hashtag.
You can customize the script by changing the hashtag and the number of tweets you wish to like/retweet. You can also modify the time delay between likes/retweets by changing the time.sleep()
parameter in the script.
This project was inspired by this tutorial by Real Python.