A Python script that posts tweets on Twitter with content and image using Tweepy API. 🐦📸
Before running the script, make sure you have the following:
- Python 3.x installed
- Tweepy library installed (pip install tweepy)
- Twitter API keys and access tokens (refer to Twitter Developer documentation: https://developer.twitter.com/en/docs/getting-started/getting-access-to-the-twitter-api)
- Clone the repository:
git clone https://github.com/Aviksaikat/Create-Tweet
- Navigate to the project directory:
cd Create-Tweet
- Install the dependecies
pip install -r requirements.txt
- Create a keys.toml file in the project directory with your Twitter API keys and access tokens:
[API_KEYS]
api_key = "your_api_key"
api_key_secret = "your_api_key_secret"
access_token = "your_access_token"
access_token_secret = "your_access_token_secret"
- Run the script with tweet content and image path:
python3 tweet.py -m "Hello world! #TwitterBot" -i "images/my_image.png"
- Sit back and enjoy your bot posting tweets with content and image on Twitter! 🎉🚀
23-04-2023.20-46-33.mp4
Contributions are welcome! Feel free to open issues or submit pull requests to enhance the functionality of this awesome Twitter bot. 💪
This project is licensed under the MIT License.