Skip to main content

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.

Metadata

Release files for openai-pricing-scraper 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for openai-pricing-scraper 0.1.1
File Size Uploaded
openai-pricing-scraper-0.1.1.tar.gz 2.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for openai-pricing-scraper 0.1.1
File Interpreter ABI Platform
openai_pricing_scraper-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 5.6 kB

Release files / openai-pricing-scraper-0.1.1.tar.gz

Download URL openai-pricing-scraper-0.1.1.tar.gz
Size 2.6 kB
Tags Source
SHA-256 checksum
How to use checksums
02c278aed7c31d4f5c34c373406be6bb9aed63e9c1c4895f01288acd44700517
BLAKE2b-256 checksum
How to use checksums
95924abffa193fe08a082123aa4939da5df9ce86f20cf415deaa092fff72ed2f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.10

Release files / openai_pricing_scraper-0.1.1-py3-none-any.whl

Download URL openai_pricing_scraper-0.1.1-py3-none-any.whl
Size 3.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f4aa4951ee615ff73edae82a1ab366f241fcd671014cc35f6f63cdec679003d8
BLAKE2b-256 checksum
How to use checksums
d87bcab41d63702d98239c621131f3b6108666eea9b62c4481e3b9f089445691
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.10

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page