Aviksaikat / Create-Tweet

Create Tweets with media using python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Create Tweets with media using python

License:MIT License


Languages

Language:Python 100.0%