Python scraper based on AI
Python ai-crawlerai-scrapingai-searchcrawlerdata-extractionfirecrawl-alternativelarge-language-modelllmmarkdownragscrapingscraping-pythonweb-crawlerweb-crawlersweb-dataweb-data-extractionweb-scraperweb-scrapingweb-searchwebscraping
removed unused init files
Marco Vinciguerra9e795f4e35ef
diff --git a/requirements-dev.lock b/requirements-dev.lockindex bce18810..2c56f3db 100644--- a/requirements-dev.lock+++ b/requirements-dev.lock@@ -180,7 +180,6 @@ graphviz==0.20.3# via scrapegraphaigreenlet==3.0.3# via playwright- # via sqlalchemygroq==0.9.0# via langchain-groqgrpc-google-iam-v1==0.13.1diff --git a/requirements.lock b/requirements.lockindex aa03fd14..a943dff1 100644--- a/requirements.lock+++ b/requirements.lock@@ -128,7 +128,6 @@ graphviz==0.20.3# via scrapegraphaigreenlet==3.0.3# via playwright- # via sqlalchemygroq==0.9.0# via langchain-groqgrpc-google-iam-v1==0.13.1diff --git a/scrapegraphai/graphs/abstract_graph.py b/scrapegraphai/graphs/abstract_graph.pyindex a0d0c52c..e1ce18f0 100644--- a/scrapegraphai/graphs/abstract_graph.py+++ b/scrapegraphai/graphs/abstract_graph.py@@ -163,9 +163,10 @@ class AbstractGraph(ABC):if "gpt-" in llm_params["model"]:try:self.model_token = models_tokens["openai"][llm_params["model"]]+ llm_params["model_provider"] = "openai"except KeyError as exc:raise KeyError("Model not supported") from exc- return OpenAI(llm_params)+ return init_chat_model(**llm_params)elif "oneapi" in llm_params["model"]:# take the model after the last dashllm_params["model"] = llm_params["model"].split("/")[-1]@@ -455,4 +456,4 @@ class AbstractGraph(ABC):"""Abstract method to execute the graph and return the result."""- pass+ pass\ No newline at end of filediff --git a/scrapegraphai/models/__init__.py b/scrapegraphai/models/__init__.pyindex bfcb84d6..81bceeb8 100644--- a/scrapegraphai/models/__init__.py+++ b/scrapegraphai/models/__init__.py@@ -2,12 +2,10 @@__init__.py file for models folder"""-from .openai import OpenAIfrom .azure_openai import AzureOpenAIfrom .openai_itt import OpenAIImageToTextfrom .openai_tts import OpenAITextToSpeechfrom .gemini import Gemini-from .ollama import Ollamafrom .hugging_face import HuggingFacefrom .groq import Groqfrom .bedrock import Bedrock