Skip to content

A Selenium-based ChatGPT interaction automation library. This library allows you to interact with ChatGPT using predefined prompts, automating conversations and fetching responses for testing or demonstration purposes. It can be easily integrated into any CLI application.

Notifications You must be signed in to change notification settings

daily-coding-problem/chatgpt-scraper-lib

Repository files navigation

ChatGPT Scraper Library

Linux Python Selenium

A Selenium-based ChatGPT interaction automation library. This library allows you to interact with ChatGPT using predefined prompts, automating conversations and fetching responses for testing or demonstration purposes. It can be easily integrated into any CLI application.

Table of Contents

Features

  • Utilizes Selenium to automate and scrape ChatGPT conversations.
  • Supports fetching responses for predefined prompts.
  • Allows integration with multiple login methods (Basic and Google).
  • Supports 2FA for secure login methods.
  • Provides mechanisms to copy ChatGPT responses in Markdown or Plain Text format.
  • Allows configuration of headless mode and temporary chat mode.

Prerequisites

Before you begin, ensure you have met the following requirements:

  • Python 3.12 or higher.

Installation

Clone the Repository

git clone https://github.com/daily-coding-problem/chatgpt-scraper-lib.git
cd chatgpt-scraper-lib

Setup Python Environment

Use the following commands to set up the Python environment:

python -m venv .venv
source .venv/bin/activate
pip install poetry
poetry install --no-root

Running Tests

Run the tests with the following command:

poetry run pytest

Learn More

For more comprehensive details about the library's architecture, module usage, API reference, and advanced examples, please refer to the DOCUMENTATION.md file in this repository.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

A Selenium-based ChatGPT interaction automation library. This library allows you to interact with ChatGPT using predefined prompts, automating conversations and fetching responses for testing or demonstration purposes. It can be easily integrated into any CLI application.

Resources

Stars

Watchers

Forks

Languages