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.
- 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.
Before you begin, ensure you have met the following requirements:
- Python 3.12 or higher.
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
Run the tests with the following command:
poetry run pytest
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.
This project is licensed under the MIT License - see the LICENSE file for details.