Skip to main content

A small tool for automating collecting data from ChatGPT

Project description

image image

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

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.0.2.tar.gz (10.6 kB view details)

Uploaded Source

Built Distribution

sleepyask-2.0.2-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for sleepyask-2.0.2.tar.gz
Algorithm Hash digest
SHA256 3a497b7c1f73af88f934a8e1cab18a19a9087967ff0402a9e466859d24feed5c
MD5 40d0cc77c328d839d84533d11578f075
BLAKE2b-256 d592b1db9b80edc23f563ccef902b9b9ccbb0bd9e1717a21363d252f39ec56e5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sleepyask-2.0.2-py3-none-any.whl
  • Upload date:
  • Size: 11.2 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.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a26e82584d2d550f24d957f06d87e9a9665a244a0c3844b4e5d044a5482e69ce
MD5 b4e395970c233a006acc8fa6c927584d
BLAKE2b-256 d708b2bbb2e93afc008801259e14cf0e4865082cf5d63498ca36398a066eec94

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