This is a simple bot for posting tweets automatically using the Twitter API and the Tweepy library in Python.
-
Create a
.env
file at the project root and add your Twitter API keys:API_KEY=YourAPIKey API_SECRET=YourAPISecret BEARER_TOKEN=YourBearerToken ACCESS_TOKEN=YourAccessToken ACCESS_TOKEN_SECRET=YourAccessTokenSecret Install dependencies: bash
pip install -r requirements.txt
Run the script:
bash
python tweepy_setup.py
Files
tweepy_setup.py: Main script for posting tweets.
tweets.txt: File containing the tweets to be posted.
.env: Configuration file for your API keys.
Contributions
Contributions are welcome! Feel free to open an issue or submit a pull request. License
This project is licensed under the MIT License.