Giter Site home page Giter Site logo

twitterbot's Introduction

Twitter Bot Readme

This repository contains code for a Twitter bot that generates tweets using ChatGPT language model.

Files

  • chatGPT.py: Is used to generate text for the tweet from the bot
  • mail.py: Is used to get the verification code from the inbox during creating a bot
  • tweet.py: Is used to post a tweet using selenium

Requirements

  • Python 3.6 or later
  • OpenAI API key
  • Selenium WebDriver
  • ChromeDriver (or other WebDriver executable)

Usage

  1. Clone the repository to your local machine.
  2. Install the required dependencies listed in requirements.txt.
  3. Replace the placeholder values in config.py with your own Twitter and OpenAI API credentials.
  4. Run mail.py to retrieve the verification code sent by Twitter to your email inbox.
  5. Paste the verification code into config.py.
  6. Modify the prompt in chatGPT.py to generate your desired tweet.
  7. Run tweet.py to post the generated tweet to your Twitter account.

License

This project is licensed under the MIT License. Feel free to use and modify the code as per your requirements.

twitterbot's People

Contributors

naumansh1011 avatar haris-bit avatar

Watchers

 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.