Skip to content

Commit

Permalink
Merge pull request #3 from WilliamJlvt/dev
Browse files Browse the repository at this point in the history
remove: == on dependencies
  • Loading branch information
WilliamJlvt authored Oct 15, 2024
2 parents 56fdfe9 + 6c7a59f commit b330914
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ from the following sources:
## Installation
You can install the package using pip:
```bash
pip install llm-price-scraper==1.0.2
pip install llm-price-scraper==1.0.3
```

## Usage
Expand Down
1 change: 1 addition & 0 deletions llm_price_scraper/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ class DataSources(Enum):
BOTGENUITY = "botgenuity"
HUGGINGFACE = "huggingface"
HUHUHANG = "huhuhang"
OPENAI = "openai"
4 changes: 4 additions & 0 deletions llm_price_scraper/scrapers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from llm_price_scraper.scrapers.docsbot import DocsBotScraper
from llm_price_scraper.scrapers.huggingface import HuggingfaceScraper
from llm_price_scraper.scrapers.huhuhang import HuhuhangScraper
from llm_price_scraper.scrapers.openai import OpenaiScraper

class LlmPricingScraper:
@staticmethod
Expand All @@ -20,5 +21,8 @@ def scrape(source: DataSources = DataSources.HUGGINGFACE):
return HuggingfaceScraper.scrape()
elif source == DataSources.HUHUHANG:
return HuhuhangScraper.scrape()
elif source == DataSources.OPENAI:
raise Exception(f"Source '{source}' is not supported.")
# return OpenaiScraper.scrape()
else:
raise Exception(f"Source '{source}' is not supported.")
8 changes: 8 additions & 0 deletions llm_price_scraper/scrapers/openai.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import requests
from datetime import datetime
from llm_price_scraper.models import LLMModelPricing

class OpenaiScraper:
@staticmethod
def scrape():
pass
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
requests==2.32.3
beautifulsoup4==4.12.3
requests>=2.32.3
beautifulsoup4>=4.12.3
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

setup(
name="llm_price_scraper",
version="1.0.2",
version="1.0.3",
packages=find_packages(),
install_requires=[
"requests==2.32.3",
"beautifulsoup4==4.12.3"
"requests>=2.32.3",
"beautifulsoup4>=4.12.3"
],
author="WilliamJlvt",
description="A simple Python SDK to scrape and retrieve pricing information for Large Language Models (LLMs) from an external webpage, with structured models for easy integration and usage.",
Expand Down

0 comments on commit b330914

Please sign in to comment.