Skip to content

Aviksaikat/Create-Tweet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My Simple Twitter Bot 🚀

A Python script that posts tweets on Twitter with content and image using Tweepy API. 🐦📸

📋 Prerequisites

Before running the script, make sure you have the following:

💻 Usage

  1. Clone the repository:
git clone https://github.com/Aviksaikat/Create-Tweet
  1. Navigate to the project directory:
cd Create-Tweet
  1. Install the dependecies
pip install -r requirements.txt
  1. 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"
  1. Run the script with tweet content and image path:
python3 tweet.py -m "Hello world! #TwitterBot" -i "images/my_image.png"
  1. Sit back and enjoy your bot posting tweets with content and image on Twitter! 🎉🚀

Example

23-04-2023.20-46-33.mp4

🤝 Contributing

Contributions are welcome! Feel free to open issues or submit pull requests to enhance the functionality of this awesome Twitter bot. 💪

License

This project is licensed under the MIT License.