|
1 | | -# Twitter-auto-Post-Bot---X.com---Tweepy-python-bot |
2 | | -Twitter auto tweeter, simple bot written in python, can post using file or via code. |
| 1 | +<div align="center"> |
| 2 | + |
| 3 | +# 🐦 Twitter Auto-Post Bot 🤖 |
| 4 | + |
| 5 | +[](https://www.python.org/downloads/release/python-370/) |
| 6 | +[](http://docs.tweepy.org/en/latest/) |
| 7 | +[](https://schedule.readthedocs.io/en/stable/) |
| 8 | +[](https://opensource.org/licenses/MIT) |
| 9 | + |
| 10 | +Automate your Twitter presence with elegance and ease. Crafted for social media enthusiasts, digital marketers, and developers. |
| 11 | +</div> |
| 12 | + |
| 13 | +--- |
| 14 | + |
| 15 | +## 🌟 About The Project |
| 16 | + |
| 17 | +This Python-based Twitter Auto-Post Bot automates tweeting, Credit to the Tweepy library for making this easy, this project enables scheduled and random tweets, offering a dynamic and engaging Twitter experience. |
| 18 | + |
| 19 | +### 📁 Files Overview |
| 20 | + |
| 21 | +- `schedule-daily-post-from-file.py`: Automates daily tweets, randomly selecting from `tweets.txt`. |
| 22 | +- `tweeter-from-code.py`: Immediately tweets a pre-defined message with the current date. |
| 23 | +- `tweeter-random-from-file.py`: Instantly posts a random tweet from `tweets.txt`. |
| 24 | +- `tweets.txt`: Add your tweets here, one per line. They will be randomly selected and tweeted. |
| 25 | +- `requirements.txt`: Lists all necessary Python packages. |
| 26 | + |
| 27 | +### 📁 Upcoming Features |
| 28 | +- `Adding Feature to Auto fetch from openAI api and tweet based on a prompt`. |
| 29 | + |
| 30 | +## 🚀 Getting Started |
| 31 | + |
| 32 | +### Prerequisites |
| 33 | + |
| 34 | +- Python 3.x |
| 35 | +- Tweepy (Twitter API) |
| 36 | + |
| 37 | +### Installation |
| 38 | + |
| 39 | +1. Clone the repo: |
| 40 | + ```sh |
| 41 | + git clone git@github.com:lewispour/Twitter-auto-Post-Bot---X.com---Tweepy-python-bot.git |
| 42 | + ``` |
| 43 | +2. Install Python packages: |
| 44 | + ```sh |
| 45 | + pip install -r requirements.txt |
| 46 | + ``` |
| 47 | + |
| 48 | +### Setup |
| 49 | + |
| 50 | +1. Obtain Twitter API credentials [here](https://developer.twitter.com/apps). |
| 51 | +2. update `keys.py` file with your credentials: |
| 52 | + ```python |
| 53 | + bearer_token = "your_bearer_token" |
| 54 | + api_key = "your_api_key" |
| 55 | + api_secret = "your_api_secret" |
| 56 | + access_token = "your_access_token" |
| 57 | + access_token_secret = "your_access_token_secret" |
| 58 | + ``` |
| 59 | +3. Customize `tweets.txt` with your tweets. |
| 60 | + |
| 61 | +## 🔧 Usage |
| 62 | + |
| 63 | +Run any script using Python: |
| 64 | + |
| 65 | +```bash |
| 66 | +python schedule-daily-post-from-file.py |
| 67 | +``` |
| 68 | + |
| 69 | +## 🤝 Contributing |
| 70 | + |
| 71 | +Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are **greatly appreciated**. |
| 72 | + |
| 73 | +## 📝 License |
| 74 | + |
| 75 | +Distributed under the MIT License. See `LICENSE` for more information. |
| 76 | + |
| 77 | +## ✉️ Contact |
| 78 | +Project Link: [https://github.com/lewispour/Twitter-auto-Post-Bot---X.com---Tweepy-python-bot](https://github.com/lewispour/Twitter-auto-Post-Bot---X.com---Tweepy-python-bot) |
0 commit comments