Python scraper based on AI
Python ai-crawlerai-scrapingai-searchcrawlerdata-extractionfirecrawl-alternativelarge-language-modelllmmarkdownragscrapingscraping-pythonweb-crawlerweb-crawlersweb-dataweb-data-extractionweb-scraperweb-scrapingweb-searchwebscraping
update examples
Marco Vinciguerrac91975e0c81f
diff --git a/examples/anthropic/csv_scraper_haiku.py b/examples/anthropic/csv_scraper_anthropic.pysimilarity index 100%rename from examples/anthropic/csv_scraper_haiku.pyrename to examples/anthropic/csv_scraper_anthropic.pydiff --git a/examples/anthropic/csv_scraper_graph_multi_haiku.py b/examples/anthropic/csv_scraper_graph_multi_anthropic.pysimilarity index 100%rename from examples/anthropic/csv_scraper_graph_multi_haiku.pyrename to examples/anthropic/csv_scraper_graph_multi_anthropic.pydiff --git a/examples/anthropic/custom_graph_haiku.py b/examples/anthropic/custom_graph_anthropic.pysimilarity index 100%rename from examples/anthropic/custom_graph_haiku.pyrename to examples/anthropic/custom_graph_anthropic.pydiff --git a/examples/anthropic/depth_search_graph_anthropic.py b/examples/anthropic/depth_search_graph_anthropic.pynew file mode 100644index 00000000..8cac7bea--- /dev/null+++ b/examples/anthropic/depth_search_graph_anthropic.py@@ -0,0 +1,28 @@+"""+depth_search_graph_opeani example+"""+import os+from dotenv import load_dotenv+from scrapegraphai.graphs import DepthSearchGraph++load_dotenv()++graph_config = {+ "llm": {+ "api_key": os.getenv("ANTHROPIC_API_KEY"),+ "model": "openai/gpt-4o-mini",+ },+ "verbose": True,+ "headless": False,+ "depth": 2,+ "only_inside_links": False,+}++search_graph = DepthSearchGraph(+ prompt="List me all the projects with their description",+ source="https://perinim.github.io",+ config=graph_config+)++result = search_graph.run()+print(result)diff --git a/examples/anthropic/json_scraper_haiku.py b/examples/anthropic/json_scraper_anthropic.pysimilarity index 100%rename from examples/anthropic/json_scraper_haiku.pyrename to examples/anthropic/json_scraper_anthropic.pydiff --git a/examples/anthropic/json_scraper_multi_haiku.py b/examples/anthropic/json_scraper_multi_anthropic.pysimilarity index 100%rename from examples/anthropic/json_scraper_multi_haiku.pyrename to examples/anthropic/json_scraper_multi_anthropic.pydiff --git a/examples/anthropic/pdf_scraper_graph_haiku.py b/examples/anthropic/pdf_scraper_graph_anthropic.pysimilarity index 100%rename from examples/anthropic/pdf_scraper_graph_haiku.pyrename to examples/anthropic/pdf_scraper_graph_anthropic.pydiff --git a/examples/anthropic/pdf_scraper_multi_haiku.py b/examples/anthropic/pdf_scraper_multi_anthropic.pysimilarity index 100%rename from examples/anthropic/pdf_scraper_multi_haiku.pyrename to examples/anthropic/pdf_scraper_multi_anthropic.pydiff --git a/examples/anthropic/rate_limit_haiku.py b/examples/anthropic/rate_limit_anthropic.pysimilarity index 100%rename from examples/anthropic/rate_limit_haiku.pyrename to examples/anthropic/rate_limit_anthropic.pydiff --git a/examples/anthropic/scrape_plain_text_haiku.py b/examples/anthropic/scrape_plain_text_anthropic.pysimilarity index 100%rename from examples/anthropic/scrape_plain_text_haiku.pyrename to examples/anthropic/scrape_plain_text_anthropic.pydiff --git a/examples/anthropic/script_generator_haiku.py b/examples/anthropic/script_generator_anthropic.pysimilarity index 100%rename from examples/anthropic/script_generator_haiku.pyrename to examples/anthropic/script_generator_anthropic.pydiff --git a/examples/anthropic/script_multi_generator_haiku.py b/examples/anthropic/script_multi_generator_anthropic.pysimilarity index 100%rename from examples/anthropic/script_multi_generator_haiku.pyrename to examples/anthropic/script_multi_generator_anthropic.pydiff --git a/examples/anthropic/search_graph_haiku.py b/examples/anthropic/search_graph_anthropic.pysimilarity index 100%rename from examples/anthropic/search_graph_haiku.pyrename to examples/anthropic/search_graph_anthropic.pydiff --git a/examples/anthropic/search_graph_schema_haiku.py b/examples/anthropic/search_graph_schema_anthropic.pysimilarity index 100%rename from examples/anthropic/search_graph_schema_haiku.pyrename to examples/anthropic/search_graph_schema_anthropic.pydiff --git a/examples/anthropic/search_link_graph_haiku.py b/examples/anthropic/search_link_graph_anthropic.pysimilarity index 100%rename from examples/anthropic/search_link_graph_haiku.pyrename to examples/anthropic/search_link_graph_anthropic.pydiff --git a/examples/anthropic/smart_scraper_haiku.py b/examples/anthropic/smart_scraper_anthropic.pysimilarity index 100%rename from examples/anthropic/smart_scraper_haiku.pyrename to examples/anthropic/smart_scraper_anthropic.pydiff --git a/examples/anthropic/smart_scraper_multi_haiku.py b/examples/anthropic/smart_scraper_multi_anthropic.pysimilarity index 100%rename from examples/anthropic/smart_scraper_multi_haiku.pyrename to examples/anthropic/smart_scraper_multi_anthropic.pydiff --git a/examples/anthropic/smart_scraper_multi_concat_haiku.py b/examples/anthropic/smart_scraper_multi_concat_anthropic.pysimilarity index 100%rename from examples/anthropic/smart_scraper_multi_concat_haiku.pyrename to examples/anthropic/smart_scraper_multi_concat_anthropic.pydiff --git a/examples/anthropic/smart_scraper_schema_haiku.py b/examples/anthropic/smart_scraper_schema_anthropic.pysimilarity index 100%rename from examples/anthropic/smart_scraper_schema_haiku.pyrename to examples/anthropic/smart_scraper_schema_anthropic.pydiff --git a/examples/anthropic/xml_scraper_haiku.py b/examples/anthropic/xml_scraper_anthropic.pysimilarity index 100%rename from examples/anthropic/xml_scraper_haiku.pyrename to examples/anthropic/xml_scraper_anthropic.pydiff --git a/examples/anthropic/xml_scraper_graph_multi_haiku.py b/examples/anthropic/xml_scraper_graph_multi_anthropic.pysimilarity index 100%rename from examples/anthropic/xml_scraper_graph_multi_haiku.pyrename to examples/anthropic/xml_scraper_graph_multi_anthropic.pydiff --git a/examples/azure/code_generator_graph_azure.py b/examples/azure/code_generator_graph_azure.pyindex ad48933f..4bad1b0d 100644--- a/examples/azure/code_generator_graph_azure.py+++ b/examples/azure/code_generator_graph_azure.py@@ -28,7 +28,7 @@ class Projects(BaseModel):graph_config = {"llm": {"api_key": os.environ["AZURE_OPENAI_KEY"],- "model": "azure_openai/gpt-3.5-turbo",+ "model": "azure_openai/gpt-4o"},"verbose": True,"headless": False,diff --git a/examples/azure/csv_scraper_azure.py b/examples/azure/csv_scraper_azure.pyindex efc99758..272527b3 100644--- a/examples/azure/csv_scraper_azure.py+++ b/examples/azure/csv_scraper_azure.py@@ -25,7 +25,7 @@ text = pd.read_csv(file_path)graph_config = {"llm": {"api_key": os.environ["AZURE_OPENAI_KEY"],- "model": "azure_openai/gpt-3.5-turbo",+ "model": "azure_openai/gpt-4o"},"verbose": True,"headless": Falsediff --git a/examples/azure/csv_scraper_graph_multi_azure.py b/examples/azure/csv_scraper_graph_multi_azure.pyindex d9160c40..cccbf88e 100644--- a/examples/azure/csv_scraper_graph_multi_azure.py+++ b/examples/azure/csv_scraper_graph_multi_azure.py@@ -25,7 +25,7 @@ text = pd.read_csv(file_path)graph_config = {"llm": {"api_key": os.environ["AZURE_OPENAI_KEY"],- "model": "azure_openai/gpt-3.5-turbo",+ "model": "azure_openai/gpt-4o"},"verbose": True,"headless": Falsediff --git a/examples/azure/depth_search_graph_azure.py b/examples/azure/depth_search_graph_azure.pynew file mode 100644index 00000000..88b2cd1b--- /dev/null+++ b/examples/azure/depth_search_graph_azure.py@@ -0,0 +1,30 @@+"""+depth_search_graph_opeani example+"""+import os+from dotenv import load_dotenv+from scrapegraphai.graphs import DepthSearchGraph++load_dotenv()++openai_key = os.getenv("OPENAI_APIKEY")++graph_config = {+ "llm": {+ "api_key": os.environ["AZURE_OPENAI_KEY"],+ "model": "azure_openai/gpt-4o",+ },+ "verbose": True,+ "headless": False,+ "depth": 2,+ "only_inside_links": False,+}++search_graph = DepthSearchGraph(+ prompt="List me all the projects with their description",+ source="https://perinim.github.io",+ config=graph_config+)++result = search_graph.run()+print(result)diff --git a/examples/azure/json_scraper_azure.py b/examples/azure/json_scraper_azure.pyindex 483544fe..5ba54f7b 100644--- a/examples/azure/json_scraper_azure.py+++ b/examples/azure/json_scraper_azure.py@@ -23,7 +23,7 @@ with open(file_path, 'r', encoding="utf-8") as file:graph_config = {"llm": {"api_key": os.environ["AZURE_OPENAI_KEY"],- "model": "azure_openai/gpt-3.5-turbo",+ "model": "azure_openai/gpt-4o"},"verbose": True,"headless": Falsediff --git a/examples/azure/json_scraper_multi_azure.py b/examples/azure/json_scraper_multi_azure.pyindex ecf97280..befc4e84 100644--- a/examples/azure/json_scraper_multi_azure.py+++ b/examples/azure/json_scraper_multi_azure.py@@ -12,7 +12,7 @@ load_dotenv()graph_config = {"llm": {"api_key": os.environ["AZURE_OPENAI_KEY"],- "model": "azure_openai/gpt-3.5-turbo",+ "model": "azure_openai/gpt-4o"},"verbose": True,"headless": Falsediff --git a/examples/azure/pdf_scraper_azure.py b/examples/azure/pdf_scraper_azure.pyindex f8926489..02b3b7e6 100644--- a/examples/azure/pdf_scraper_azure.py+++ b/examples/azure/pdf_scraper_azure.py@@ -10,7 +10,7 @@ load_dotenv()graph_config = {"llm": {"api_key": os.environ["AZURE_OPENAI_KEY"],- "model": "azure_openai/gpt-3.5-turbo",+ "model": "azure_openai/gpt-4o"},"verbose": True,"headless": Falsediff --git a/examples/azure/rate_limit_azure.py b/examples/azure/rate_limit_azure.pyindex cfd05f1f..892996c7 100644--- a/examples/azure/rate_limit_azure.py+++ b/examples/azure/rate_limit_azure.py@@ -26,7 +26,7 @@ load_dotenv()graph_config = {"llm": {"api_key": os.environ["AZURE_OPENAI_KEY"],- "model": "azure_openai/gpt-3.5-turbo",+ "model": "azure_openai/gpt-4o","rate_limit": {"requests_per_second": 1},diff --git a/examples/azure/scrape_plain_text_azure.py b/examples/azure/scrape_plain_text_azure.pyindex ef0d7d1c..9ea18d07 100644--- a/examples/azure/scrape_plain_text_azure.py+++ b/examples/azure/scrape_plain_text_azure.py@@ -28,7 +28,7 @@ with open(file_path, 'r', encoding="utf-8") as file:graph_config = {"llm": {"api_key": os.environ["AZURE_OPENAI_KEY"],- "model": "azure_openai/gpt-3.5-turbo",+ "model": "azure_openai/gpt-4o"},"verbose": True,"headless": Falsediff --git a/examples/azure/script_generator_azure.py b/examples/azure/script_generator_azure.pyindex 12f5d6be..b2bbb220 100644--- a/examples/azure/script_generator_azure.py+++ b/examples/azure/script_generator_azure.py@@ -15,7 +15,7 @@ load_dotenv()graph_config = {"llm": {"api_key": os.environ["AZURE_OPENAI_KEY"],- "model": "azure_openai/gpt-3.5-turbo",+ "model": "azure_openai/gpt-4o"},"verbose": True,"headless": Falsediff --git a/examples/azure/script_multi_generator_azure.py b/examples/azure/script_multi_generator_azure.pyindex a1bb8dbd..8c52cb95 100644--- a/examples/azure/script_multi_generator_azure.py+++ b/examples/azure/script_multi_generator_azure.py@@ -16,7 +16,7 @@ load_dotenv()graph_config = {"llm": {"api_key": os.environ["AZURE_OPENAI_KEY"],- "model": "azure_openai/gpt-3.5-turbo",+ "model": "azure_openai/gpt-4o"},"verbose": True,"headless": Falsediff --git a/examples/azure/search_graph_azure.py b/examples/azure/search_graph_azure.pyindex 13547e06..949f134c 100644--- a/examples/azure/search_graph_azure.py+++ b/examples/azure/search_graph_azure.py@@ -22,7 +22,7 @@ with open(file_path, 'r', encoding="utf-8") as file:graph_config = {"llm": {"api_key": os.environ["AZURE_OPENAI_KEY"],- "model": "azure_openai/gpt-3.5-turbo",+ "model": "azure_openai/gpt-4o"},"verbose": True,"headless": Falsediff --git a/examples/azure/search_graph_schema_azure.py b/examples/azure/search_graph_schema_azure.pyindex 629c92ab..e8c10093 100644--- a/examples/azure/search_graph_schema_azure.py+++ b/examples/azure/search_graph_schema_azure.py@@ -30,7 +30,7 @@ class Dishes(BaseModel):graph_config = {"llm": {"api_key": os.environ["AZURE_OPENAI_KEY"],- "model": "azure_openai/gpt-3.5-turbo",+ "model": "azure_openai/gpt-4o"},"verbose": True,"headless": Falsediff --git a/examples/azure/search_link_graph_azure.py b/examples/azure/search_link_graph_azure.pyindex aec2297b..42ed07ad 100644--- a/examples/azure/search_link_graph_azure.py+++ b/examples/azure/search_link_graph_azure.py@@ -15,7 +15,7 @@ load_dotenv()graph_config = {"llm": {"api_key": os.environ["AZURE_OPENAI_KEY"],- "model": "azure_openai/gpt-3.5-turbo",+ "model": "azure_openai/gpt-4o"},"verbose": True,"headless": Falsediff --git a/examples/azure/smart_scraper_azure.py b/examples/azure/smart_scraper_azure.pyindex bf3bc8d7..933dc5b0 100644--- a/examples/azure/smart_scraper_azure.py+++ b/examples/azure/smart_scraper_azure.py@@ -26,7 +26,7 @@ load_dotenv()graph_config = {"llm": {"api_key": os.environ["AZURE_OPENAI_KEY"],- "model": "azure_openai/gpt-3.5-turbo",+ "model": "azure_openai/gpt-4o"},"verbose": True,"headless": Falsediff --git a/examples/azure/smart_scraper_multi_azure.py b/examples/azure/smart_scraper_multi_azure.pyindex f1f3451e..e066eaf1 100644--- a/examples/azure/smart_scraper_multi_azure.py+++ b/examples/azure/smart_scraper_multi_azure.py@@ -14,7 +14,7 @@ load_dotenv()graph_config = {"llm": {"api_key": os.environ["AZURE_OPENAI_KEY"],- "model": "azure_openai/gpt-3.5-turbo",+ "model": "azure_openai/gpt-4o"},"verbose": True,"headless": Falsediff --git a/examples/azure/smart_scraper_multi_concat_azure.py b/examples/azure/smart_scraper_multi_concat_azure.pyindex e3870a4c..06d08b9a 100644--- a/examples/azure/smart_scraper_multi_concat_azure.py+++ b/examples/azure/smart_scraper_multi_concat_azure.py@@ -15,7 +15,7 @@ load_dotenv()graph_config = {"llm": {"api_key": os.environ["AZURE_OPENAI_KEY"],- "model": "azure_openai/gpt-3.5-turbo",+ "model": "azure_openai/gpt-4o"},"verbose": True,"headless": Falsediff --git a/examples/azure/smart_scraper_schema_azure.py b/examples/azure/smart_scraper_schema_azure.pyindex d0816bf5..d2766ecb 100644--- a/examples/azure/smart_scraper_schema_azure.py+++ b/examples/azure/smart_scraper_schema_azure.py@@ -29,7 +29,7 @@ class Projects(BaseModel):graph_config = {"llm": {"api_key": os.environ["AZURE_OPENAI_KEY"],- "model": "azure_openai/gpt-3.5-turbo",+ "model": "azure_openai/gpt-4o"},"verbose": True,"headless": Falsediff --git a/examples/azure/xml_scraper_azure.py b/examples/azure/xml_scraper_azure.pyindex ecfb8743..1c40f3e7 100644--- a/examples/azure/xml_scraper_azure.py+++ b/examples/azure/xml_scraper_azure.py@@ -24,7 +24,7 @@ with open(file_path, 'r', encoding="utf-8") as file:graph_config = {"llm": {"api_key": os.environ["AZURE_OPENAI_KEY"],- "model": "azure_openai/gpt-3.5-turbo",+ "model": "azure_openai/gpt-4o"},"verbose": True,"headless": Falsediff --git a/examples/azure/xml_scraper_graph_multi_azure.py b/examples/azure/xml_scraper_graph_multi_azure.pyindex db4db108..972eb823 100644--- a/examples/azure/xml_scraper_graph_multi_azure.py+++ b/examples/azure/xml_scraper_graph_multi_azure.py@@ -25,7 +25,7 @@ with open(file_path, 'r', encoding="utf-8") as file:graph_config = {"llm": {"api_key": os.environ["AZURE_OPENAI_KEY"],- "model": "azure_openai/gpt-3.5-turbo",+ "model": "azure_openai/gpt-4o",},"verbose": True,"headless": Falsediff --git a/examples/bedrock/depth_search_graph_bedrock.py b/examples/bedrock/depth_search_graph_bedrock.pynew file mode 100644index 00000000..2ab88291--- /dev/null+++ b/examples/bedrock/depth_search_graph_bedrock.py@@ -0,0 +1,31 @@+"""+depth_search_graph_opeani example+"""+import os+from dotenv import load_dotenv+from scrapegraphai.graphs import DepthSearchGraph++load_dotenv()++openai_key = os.getenv("OPENAI_APIKEY")++graph_config = {+ "llm": {+ "client": "client_name",+ "model": "bedrock/anthropic.claude-3-sonnet-20240229-v1:0",+ "temperature": 0.0+ },+ "verbose": True,+ "headless": False,+ "depth": 2,+ "only_inside_links": False,+}++search_graph = DepthSearchGraph(+ prompt="List me all the projects with their description",+ source="https://perinim.github.io",+ config=graph_config+)++result = search_graph.run()+print(result)diff --git a/examples/deepseek/depth_search_graph_deepseek.py b/examples/deepseek/depth_search_graph_deepseek.pynew file mode 100644index 00000000..064690a5--- /dev/null+++ b/examples/deepseek/depth_search_graph_deepseek.py@@ -0,0 +1,30 @@+"""+depth_search_graph_opeani example+"""+import os+from dotenv import load_dotenv+from scrapegraphai.graphs import DepthSearchGraph++load_dotenv()++deepseek_key = os.getenv("DEEPSEEK_APIKEY")++graph_config = {+ "llm": {+ "model": "deepseek/deepseek-chat",+ "api_key": deepseek_key,+ },+ "verbose": True,+ "headless": False,+ "depth": 2,+ "only_inside_links": False,+}++search_graph = DepthSearchGraph(+ prompt="List me all the projects with their description",+ source="https://perinim.github.io",+ config=graph_config+)++result = search_graph.run()+print(result)diff --git a/examples/ernie/custom_graph_ernie.py b/examples/ernie/custom_graph_ernie.pyindex 57d422e5..a3082cf7 100644--- a/examples/ernie/custom_graph_ernie.py+++ b/examples/ernie/custom_graph_ernie.py@@ -14,7 +14,7 @@ from scrapegraphai.nodes import FetchNode, ParseNode, RAGNode, GenerateAnswerNod# Define the configuration for the graph# ************************************************-graph_config = {+graph_config = {"llm": {"model": "ernie/ernie-bot-turbo","ernie_client_id": "<ernie_client_id>",diff --git a/examples/ernie/depth_search_graph_ernie.py b/examples/ernie/depth_search_graph_ernie.pynew file mode 100644index 00000000..99470d8d--- /dev/null+++ b/examples/ernie/depth_search_graph_ernie.py@@ -0,0 +1,26 @@+"""+depth_search_graph_opeani example+"""+from scrapegraphai.graphs import DepthSearchGraph++graph_config = {+ "llm": {+ "model": "ernie/ernie-bot-turbo",+ "ernie_client_id": "<ernie_client_id>",+ "ernie_client_secret": "<ernie_client_secret>",+ "temperature": 0.1+ },+ "verbose": True,+ "headless": False,+ "depth": 2,+ "only_inside_links": False,+}++search_graph = DepthSearchGraph(+ prompt="List me all the projects with their description",+ source="https://perinim.github.io",+ config=graph_config+)++result = search_graph.run()+print(result)diff --git a/examples/fireworks/depth_search_graph_fireworks.py b/examples/fireworks/depth_search_graph_fireworks.pynew file mode 100644index 00000000..f467be9f--- /dev/null+++ b/examples/fireworks/depth_search_graph_fireworks.py@@ -0,0 +1,30 @@+"""+depth_search_graph_opeani example+"""+import os+from dotenv import load_dotenv+from scrapegraphai.graphs import DepthSearchGraph++load_dotenv()++fireworks_api_key = os.getenv("FIREWORKS_APIKEY")++graph_config = {+ "llm": {+ "api_key": fireworks_api_key,+ "model": "fireworks/accounts/fireworks/models/mixtral-8x7b-instruct"+ },+ "verbose": True,+ "headless": False,+ "depth": 2,+ "only_inside_links": False,+}++search_graph = DepthSearchGraph(+ prompt="List me all the projects with their description",+ source="https://perinim.github.io",+ config=graph_config+)++result = search_graph.run()+print(result)diff --git a/examples/google_genai/depth_search_graph_gemini.py b/examples/google_genai/depth_search_graph_gemini.pynew file mode 100644index 00000000..956341f4--- /dev/null+++ b/examples/google_genai/depth_search_graph_gemini.py@@ -0,0 +1,30 @@+"""+depth_search_graph_opeani example+"""+import os+from dotenv import load_dotenv+from scrapegraphai.graphs import DepthSearchGraph++load_dotenv()++gemini_key = os.getenv("GOOGLE_APIKEY")++graph_config = {+ "llm": {+ "api_key": gemini_key,+ "model": "google_genai/gemini-pro",+ },+ "verbose": True,+ "headless": False,+ "depth": 2,+ "only_inside_links": False,+}++search_graph = DepthSearchGraph(+ prompt="List me all the projects with their description",+ source="https://perinim.github.io",+ config=graph_config+)++result = search_graph.run()+print(result)diff --git a/examples/google_vertexai/depth_search_graph_gemini.py b/examples/google_vertexai/depth_search_graph_gemini.pynew file mode 100644index 00000000..13bba630--- /dev/null+++ b/examples/google_vertexai/depth_search_graph_gemini.py@@ -0,0 +1,30 @@+"""+depth_search_graph_opeani example+"""+import os+from dotenv import load_dotenv+from scrapegraphai.graphs import DepthSearchGraph++load_dotenv()++gemini_key = os.getenv("GOOGLE_APIKEY")++graph_config = {+ "llm": {+ "api_key": gemini_key,+ "model": "google_vertexai/gemini-1.5-pro",+ },+ "verbose": True,+ "headless": False,+ "depth": 2,+ "only_inside_links": False,+}++search_graph = DepthSearchGraph(+ prompt="List me all the projects with their description",+ source="https://perinim.github.io",+ config=graph_config+)++result = search_graph.run()+print(result)diff --git a/examples/groq/depth_search_graph_groq.py b/examples/groq/depth_search_graph_groq.pynew file mode 100644index 00000000..2d1ed8b1--- /dev/null+++ b/examples/groq/depth_search_graph_groq.py@@ -0,0 +1,31 @@+"""+depth_search_graph_opeani example+"""+import os+from dotenv import load_dotenv+from scrapegraphai.graphs import DepthSearchGraph++load_dotenv()++groq_key = os.getenv("GROQ_APIKEY")++graph_config = {+ "llm": {+ "model": "groq/gemma-7b-it",+ "api_key": groq_key,+ "temperature": 0+ },+ "verbose": True,+ "headless": False,+ "depth": 2,+ "only_inside_links": False,+}++search_graph = DepthSearchGraph(+ prompt="List me all the projects with their description",+ source="https://perinim.github.io",+ config=graph_config+)++result = search_graph.run()+print(result)diff --git a/examples/huggingfacehub/custom_graph_huggingfacehub.py b/examples/huggingfacehub/custom_graph_huggingfacehub.pyindex cec007b7..06b2f089 100644--- a/examples/huggingfacehub/custom_graph_huggingfacehub.py+++ b/examples/huggingfacehub/custom_graph_huggingfacehub.py@@ -4,7 +4,6 @@ Example of custom graph using existing nodesimport osfrom dotenv import load_dotenv-from langchain_openai import OpenAIEmbeddingsfrom langchain_openai import ChatOpenAIfrom scrapegraphai.graphs import BaseGraphdiff --git a/examples/huggingfacehub/depth_search_graph_huggingfacehub.py b/examples/huggingfacehub/depth_search_graph_huggingfacehub.pynew file mode 100644index 00000000..48df3e37--- /dev/null+++ b/examples/huggingfacehub/depth_search_graph_huggingfacehub.py@@ -0,0 +1,38 @@+"""+depth_search_graph_opeani example+"""+import os+from dotenv import load_dotenv+from scrapegraphai.graphs import DepthSearchGraph+from langchain_community.llms import HuggingFaceEndpoint+from langchain_community.embeddings import HuggingFaceInferenceAPIEmbeddings++load_dotenv()+HUGGINGFACEHUB_API_TOKEN = os.getenv('HUGGINGFACEHUB_API_TOKEN')++repo_id = "mistralai/Mistral-7B-Instruct-v0.2"++llm_model_instance = HuggingFaceEndpoint(+ repo_id=repo_id, max_length=128, temperature=0.5, token=HUGGINGFACEHUB_API_TOKEN+)++embedder_model_instance = HuggingFaceInferenceAPIEmbeddings(+ api_key=HUGGINGFACEHUB_API_TOKEN, model_name="sentence-transformers/all-MiniLM-l6-v2"+)++graph_config = {+ "llm": {"model_instance": llm_model_instance},+ "verbose": True,+ "headless": False,+ "depth": 2,+ "only_inside_links": False,+}++search_graph = DepthSearchGraph(+ prompt="List me all the projects with their description",+ source="https://perinim.github.io",+ config=graph_config+)++result = search_graph.run()+print(result)diff --git a/examples/local_models/depth_search_graph_ollama.py b/examples/local_models/depth_search_graph_ollama.pynew file mode 100644index 00000000..d0f960b5--- /dev/null+++ b/examples/local_models/depth_search_graph_ollama.py@@ -0,0 +1,32 @@+"""+depth_search_graph_opeani example+"""+import os+from dotenv import load_dotenv+from scrapegraphai.graphs import DepthSearchGraph++load_dotenv()++openai_key = os.getenv("OPENAI_APIKEY")++graph_config = {+ "llm": {+ "model": "ollama/llama3.1",+ "temperature": 0,+ "format": "json", # Ollama needs the format to be specified explicitly+ # "base_url": "http://localhost:11434", # set ollama URL arbitrarily+ },+ "verbose": True,+ "headless": False,+ "depth": 2,+ "only_inside_links": False,+}++search_graph = DepthSearchGraph(+ prompt="List me all the projects with their description",+ source="https://perinim.github.io",+ config=graph_config+)++result = search_graph.run()+print(result)diff --git a/examples/local_models/json_scraper_multi_ollama.py b/examples/local_models/json_scraper_multi_ollama.pyindex 6e9c3da3..e80bf5ec 100644--- a/examples/local_models/json_scraper_multi_ollama.py+++ b/examples/local_models/json_scraper_multi_ollama.py@@ -15,6 +15,7 @@ graph_config = {"verbose": True,"headless": False,}+FILE_NAME = "inputs/example.json"curr_dir = os.path.dirname(os.path.realpath(__file__))file_path = os.path.join(curr_dir, FILE_NAME)diff --git a/examples/local_models/smart_scraper_schema_ollama.py b/examples/local_models/smart_scraper_schema_ollama.pyindex 35503bd7..5a5b3cea 100644--- a/examples/local_models/smart_scraper_schema_ollama.py+++ b/examples/local_models/smart_scraper_schema_ollama.py@@ -24,7 +24,6 @@ graph_config = {"format": "json", # Ollama needs the format to be specified explicitly# "base_url": "http://localhost:11434", # set ollama URL arbitrarily},-"verbose": True,"headless": False}diff --git a/examples/mistral/depth_search_graph_mistral.py b/examples/mistral/depth_search_graph_mistral.pynew file mode 100644index 00000000..ae18ffba--- /dev/null+++ b/examples/mistral/depth_search_graph_mistral.py@@ -0,0 +1,30 @@+"""+depth_search_graph_opeani example+"""+import os+from dotenv import load_dotenv+from scrapegraphai.graphs import DepthSearchGraph++load_dotenv()++mistral_key = os.getenv("MISTRAL_API_KEY")++graph_config = {+ "llm": {+ "api_key": mistral_key,+ "model": "mistralai/open-mistral-nemo",+ },+ "verbose": True,+ "headless": False,+ "depth": 2,+ "only_inside_links": False,+}++search_graph = DepthSearchGraph(+ prompt="List me all the projects with their description",+ source="https://perinim.github.io",+ config=graph_config+)++result = search_graph.run()+print(result)diff --git a/examples/nemotron/depth_search_graph_nemotron.py b/examples/nemotron/depth_search_graph_nemotron.pynew file mode 100644index 00000000..edd80463--- /dev/null+++ b/examples/nemotron/depth_search_graph_nemotron.py@@ -0,0 +1,30 @@+"""+depth_search_graph_opeani example+"""+import os+from dotenv import load_dotenv+from scrapegraphai.graphs import DepthSearchGraph++load_dotenv()++openai_key = os.getenv("OPENAI_APIKEY")++graph_config = {+ "llm": {+ "api_key": os.getenv("NEMOTRON_KEY"),+ "model": "claude-3-haiku-20240307",+ },+ "verbose": True,+ "headless": False,+ "depth": 2,+ "only_inside_links": False,+}++search_graph = DepthSearchGraph(+ prompt="List me all the projects with their description",+ source="https://perinim.github.io",+ config=graph_config+)++result = search_graph.run()+print(result)diff --git a/examples/oneapi/depth_search_graph_onenapi.py b/examples/oneapi/depth_search_graph_onenapi.pynew file mode 100644index 00000000..7a2e7f3e--- /dev/null+++ b/examples/oneapi/depth_search_graph_onenapi.py@@ -0,0 +1,31 @@+"""+depth_search_graph_opeani example+"""+import os+from dotenv import load_dotenv+from scrapegraphai.graphs import DepthSearchGraph++load_dotenv()++openai_key = os.getenv("OPENAI_APIKEY")++graph_config = {+ "llm": {+ "api_key": "***************************",+ "model": "oneapi/qwen-turbo",+ "base_url": "http://127.0.0.1:3000/v1", # 设置 OneAPI URL+ },+ "verbose": True,+ "headless": False,+ "depth": 2,+ "only_inside_links": False,+}++search_graph = DepthSearchGraph(+ prompt="List me all the projects with their description",+ source="https://perinim.github.io",+ config=graph_config+)++result = search_graph.run()+print(result)diff --git a/examples/together/depth_search_graph_together.py b/examples/together/depth_search_graph_together.pynew file mode 100644index 00000000..7a2e7f3e--- /dev/null+++ b/examples/together/depth_search_graph_together.py@@ -0,0 +1,31 @@+"""+depth_search_graph_opeani example+"""+import os+from dotenv import load_dotenv+from scrapegraphai.graphs import DepthSearchGraph++load_dotenv()++openai_key = os.getenv("OPENAI_APIKEY")++graph_config = {+ "llm": {+ "api_key": "***************************",+ "model": "oneapi/qwen-turbo",+ "base_url": "http://127.0.0.1:3000/v1", # 设置 OneAPI URL+ },+ "verbose": True,+ "headless": False,+ "depth": 2,+ "only_inside_links": False,+}++search_graph = DepthSearchGraph(+ prompt="List me all the projects with their description",+ source="https://perinim.github.io",+ config=graph_config+)++result = search_graph.run()+print(result)