Welcome to PostTechBot! This is a Python script designed to automate interactions on the Post.tech platform using Selenium and the ChatGPT API for generating tweets and replies. If you find this script useful, please consider giving it a star.
-
Automated Tweeting: PostTechBot can create and send tweets on your behalf using the ChatGPT API.
-
Automated Replies: It can also automatically reply to messages on the Post.tech platform using the ChatGPT API.
-
Clone this repository to your local machine:
git clone https://github.com/your-username/PostTechBot.git
-
Install the required Python packages:
pip install selenium
-
Create a virtual environment (optional but recommended):
python -m venv venv
-
Activate the virtual environment (skip this step if you didn't create a virtual environment):
-
On Windows:
venv\Scripts\activate
-
On macOS and Linux:
source venv/bin/activate
-
-
Set up your environment variables by creating a
.env
file in the project directory with the following content:username=user1 password=pass gpt=apikey
Replace
user1
,pass
, andapikey
with your actual Post.tech username, password, and ChatGPT API key. -
Install the required Firefox WebDriver:
- Download the latest GeckoDriver from here.
- Add the GeckoDriver executable to your system's PATH.
-
Configure your ChatGPT API credentials:
-
Obtain your API key from the OpenAI platform.
-
Put your API key to .env file
-
-
Run the script:
python main.py
This will start the automation process.
- You can customize the tweet and reply messages by modifying the
tweet_message
andreply_message
variables in the script or delete these and uncomment the commented ones to work with gpt, also set up your persona and prompt
- Selenium: https://pypi.org/project/selenium/
This project is licensed under the MIT License. See the LICENSE file for details.
Enjoy automating your interactions on Post.tech with PostTechBot, powered by the ChatGPT API! If you encounter any issues or have suggestions for improvements, please open an issue on this repository. Thank you for using PostTechBot! 🚀