Skip to main content

Simple way to fetch and parse the pricing data from the OpenAI pricing page.

Project description

OpenAI Pricing Scraper

This package provides a simple way to fetch and parse the pricing data from the OpenAI pricing page. It can be used as a standalone script or as a module imported into other applications.

Installation

To install the package, you can either clone the repository and install it locally or install it directly from the source using pip:

pip install git+https://github.com/8ByteSword/openai_pricing_scraper.git

or

pip install openai_pricing_scraper

(Github and pypi versions may differ)

Usage

As a module

from openai_pricing_scraper import fetch_pricing_data

pricing_data = fetch_pricing_data()
print(pricing_data)

As a standalone script

Run the fetch_pricing.py script directly:

python fetch_pricing.py

Result

The result will be given as a JSON. At the time of writing would be:

License

This project is licensed under the MIT License.

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

openai-pricing-scraper-0.1.1.tar.gz (2.6 kB view hashes)

Uploaded Source

Built Distribution

openai_pricing_scraper-0.1.1-py3-none-any.whl (3.0 kB view hashes)

Uploaded Python 3

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