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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for openai-pricing-scraper-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 02c278aed7c31d4f5c34c373406be6bb9aed63e9c1c4895f01288acd44700517 |
|
MD5 | 62c6accb135e811d2b5955c8db9d081a |
|
BLAKE2b-256 | 95924abffa193fe08a082123aa4939da5df9ce86f20cf415deaa092fff72ed2f |
Close
Hashes for openai_pricing_scraper-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f4aa4951ee615ff73edae82a1ab366f241fcd671014cc35f6f63cdec679003d8 |
|
MD5 | afaf69be604a4da738f9768db29de284 |
|
BLAKE2b-256 | d87bcab41d63702d98239c621131f3b6108666eea9b62c4481e3b9f089445691 |