Code Monkey home page Code Monkey logo

posttechbot's Introduction

PostTechBot

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.

Features

  • 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.

Getting Started

  1. Clone this repository to your local machine:

    git clone https://github.com/your-username/PostTechBot.git
  2. Install the required Python packages:

    pip install selenium
  3. Create a virtual environment (optional but recommended):

    python -m venv venv
  4. 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
  5. 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, and apikey with your actual Post.tech username, password, and ChatGPT API key.

  6. Install the required Firefox WebDriver:

    • Download the latest GeckoDriver from here.
    • Add the GeckoDriver executable to your system's PATH.
  7. Configure your ChatGPT API credentials:

    • Obtain your API key from the OpenAI platform.

    • Set your API key as an environment variable:

      export OPENAI_API_KEY=your_api_key
  8. Run the script:

    python posttechbot.py

    This will start the automation process.

Configuration

  • You can customize the tweet and reply messages by modifying the tweet_message and reply_message variables in the script.

Dependencies

License

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! ๐Ÿš€

posttechbot's People

Contributors

popinek avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.