Coder Social home page Coder Social logo

cool-gpt's Introduction

cool_gpt

Cool-GPT is a Python library that allows you to use ChatGPT for free using the Selenium framework. By utilizing Selenium, you can automate use chatgpt like api, this helps you to generate text and engage in conversations programmatically. It doesn't require any API keys and it's easy to use and straightforward. It also doesn't scrape openai or chatgpt website.

Prerequisites

Before using Cool-GPT, ensure that you have the following prerequisites installed:

  • Python 3.6 or above
  • Selenium (install via pip install selenium)
  • element-manager (install via pip install element-manager)
  • A compatible web driver for Selenium (e.g., ChromeDriver) Link
  • Put the web driver in the same folder as the script
  • A stable internet connection

Installation

You can install cool_gpt via pip:

pip install cool_gpt

Getting Started

To get started, follow these steps:

Here's a basic example of how to use cool_gpt:

from cool_gpt import bot

driver = bot.setup_driver()
print('Enter 'q' to quit')
while True:
    message = input('You: ')
    if message == 'q':
        break
    print('Bot:', bot.ask(message, driver))

Limitations

Please note the following limitations of cool_gpt:

cool_gpt is dependent on the availability and reliability of the toolbot.ai interface.

Usage of cool_gpt may be subject to the terms and conditions of the service providing the toolbot.ai interface.

Selenium automation may be slower compared to the OpenAI API, and rate limits may apply depending on the provider and toolbot.ai interface.

Contributing

Contributions to cool_gpt are welcome! If you have any ideas, improvements, or bug fixes, please submit a pull request or open an issue on the GitHub repository.

License

cool_gpt is licensed under the MIT License. Feel free to use and modify the library according to your needs.

Acknowledgements

cool_gpt was inspired by the amazing work done by toolbot.ai in developing this amazing website.

Thank me on-

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.