Skip to main content

A small tool for automating collecting data from ChatGPT

Project description

image

A small tool for automating collecting data from ChatGPT over long periods of time.

Stargazers Releases Issues

What does it do?

ChatGPT currently limits the number of questions that users may ask per hour. The goal of this project is to allow users to just leave their computers on for extended periods of time to collect large amounts of responses from ChatGPT. There might not be a lot of practical use for this. Its main use is in research or data analysis.

Install as a Python Library

pip install sleepyask

image

Sample code

There are multiple ways to configure authentication with ChatGPT:
Email + Password

config = {
  "email": "Your ChatGPT email",
  "password": "Your ChatGPT password"
}

Access Token
Access token can be found here: https://chat.openai.com/api/auth/session

config = {
  "access_token": "Your access token"
}

image

Single account

Example usage:

from sleepyask.chat import sleepy_ask

# Your ChatGPT login information
config = {
  "email": "Your ChatGPT email",
  "password": "Your ChatGPT password"
}

# List of questions you would like to ask ChatGPT
question_list = [
  'What is 1 + 1?',
  'What is 1 + 2?',
  'What is 1 + 3?'
]

# The filename in which you would like your responses to be stored.
output_file_path = 'draw.json'  

# Run sleepy_ask
sleepy_ask(config=config,
           questions=question_list,
           output_file_path=output_file_path,
           verbose=True)

Multiple accounts

You can use multiple accounts to collect responses at a significantly quicker rate.
Example usage:

from sleepyask.chat import sleepy_ask

# Your ChatGPT login information
config_1 = {
  "email": "Your ChatGPT email",
  "password": "Your ChatGPT password"
}

config_2 = {
  "email": "Your ChatGPT email",
  "password": "Your ChatGPT password"
}

configs = [config_1, config_2]

# List of questions you would like to ask ChatGPT
question_list = [
  'What is 1 + 1?',
  'What is 1 + 2?',
  'What is 1 + 3?'
]

# The filename in which you would like your responses to be stored.
output_file_path = 'draw.json'  

# Run sleepy_ask
sleepy_ask_multi(configs=configs,
           questions=question_list,
           output_file_path=output_file_path,
           verbose=True)

Get involved

  • 🐛 Found a bug or interested in adding a feature? - Create an issue

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sleepyask-2.1.0.tar.gz (16.3 kB view details)

Uploaded Source

Built Distribution

sleepyask-2.1.0-py3-none-any.whl (16.8 kB view details)

Uploaded Python 3

File details

Details for the file sleepyask-2.1.0.tar.gz.

File metadata

  • Download URL: sleepyask-2.1.0.tar.gz
  • Upload date:
  • Size: 16.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for sleepyask-2.1.0.tar.gz
Algorithm Hash digest
SHA256 a0afb21316b7bb8cef62138f7a487d6971a0806672be698b7d14e10b83522bdf
MD5 22c2c24a546588d07c9d90b3a4c5d41e
BLAKE2b-256 516f7418b293af2eb41006aa4b99b32a95420a0946d309f19a113a189015a6a1

See more details on using hashes here.

File details

Details for the file sleepyask-2.1.0-py3-none-any.whl.

File metadata

  • Download URL: sleepyask-2.1.0-py3-none-any.whl
  • Upload date:
  • Size: 16.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for sleepyask-2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 539b5662e53304c263c35923546fe662bf3470780d84ac8a4bdcf6cdbd0011e1
MD5 e1100c18433e7ca99f777b7a114c7901
BLAKE2b-256 8d1ebea99dd978a45bd1c793b6ffc50ca2defbd74912fda245f06d880a5b6570

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page