You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Automate your Twitter presence. Auto Post from from file, from a string, schedule a new tweet to be posted daily or post the tweet instantly.
10
+
Automate your Twitter presence. Auto Post tweets from from openAI GPT4, from a file, from a string, schedule a new tweet to be posted daily or post the tweet instantly.
11
11
</div>
12
12
13
13
---
@@ -17,15 +17,32 @@ Automate your Twitter presence. Auto Post from from file, from a string, schedul
17
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
18
19
19
### 📁 Files Overview
20
+
#### Using OpenAI
21
+
##### Instantly:
22
+
-`src/instantly-tweet-from-openai.py`: Immediately tweets a tweet from openAI api response, currently using GPT4, but you can change the model in [functions.py](https://github.com/lewispour/Twitter-auto-Post-Bot---X.com---Tweepy-python-bot/blob/main/src/functions.py#L21)
20
23
24
+
-###### Prompt defined [here](https://github.com/lewispour/Twitter-auto-Post-Bot---X.com---Tweepy-python-bot/blob/main/src/instantly-tweet-from-openai.py#L7)
25
+
26
+
##### Schedule to auto post, tweet daily at a time:
27
+
-`src/schedule-daily-post-from-openai.py`: Automates daily tweets, Runs daily at a scheduled time and queries open ai api to create a tweet, the tweet returned is then automatically tweeted each day to fully automate twitter on auto pilot. By default the model is OPENAI GPT4 but you can change the model in [functions.py](https://github.com/lewispour/Twitter-auto-Post-Bot---X.com---Tweepy-python-bot/blob/main/src/functions.py#L21).
28
+
-###### Prompt defined [here](https://github.com/lewispour/Twitter-auto-Post-Bot---X.com---Tweepy-python-bot/blob/main/src/schedule-daily-post-from-openai.py#L12)
29
+
-###### Schedule time defined [here](https://github.com/lewispour/Twitter-auto-Post-Bot---X.com---Tweepy-python-bot/blob/main/src/schedule-daily-post-from-openai.py#L20)
30
+
31
+
#### From File
21
32
-`src/schedule-daily-post-from-file.py`: Automates daily tweets, randomly selecting from `tweets.txt`. To change the schedule time [edit this](https://github.com/lewispour/Twitter-auto-Post-Bot---X.com---Tweepy-python-bot/blob/main/src/schedule-daily-post-from-file.py#L22).
22
-
-`src/tweeter-from-code.py`: Immediately tweets a pre-defined message with the current date, but you can change this to whatever you like.
23
33
-`src/tweeter-random-from-file.py`: Instantly posts a random tweet from `tweets.txt`.
24
-
-`data/tweets.txt`: Add your tweets here, one per line. They will be randomly selected and tweeted.
34
+
35
+
###### Add your tweets to `data/tweets.txt`: one per line. They will be randomly selected and tweeted.
36
+
37
+
#### Manually tweeting using script
38
+
`src/tweeter-from-code.py`: Immediately tweets a pre-defined message with the current date, but you can change this to whatever you like.
39
+
40
+
#### common files
41
+
-`config/keys.py`: Holds both the creds for openai and twitter api.
42
+
-`src/functions.py`: Shared functions for generating tweets from openai and tweet posting
25
43
-`requirements.txt`: Lists all necessary Python packages.
26
44
27
45
### 📁 Upcoming Features
28
-
-`Adding Feature to Auto fetch from openAI api and tweet based on a prompt`.
29
46
-`Adding CLI`.
30
47
31
48
## 🚀 Getting Started
@@ -51,11 +68,12 @@ This Python-based Twitter Auto-Post Bot automates tweeting, Credit to the Tweepy
51
68
1. Obtain Twitter API credentials [here](https://developer.twitter.com/apps).
52
69
2. update `config/keys.py` file with your credentials:
0 commit comments