Python scraper based on AI
Python ai-crawlerai-scrapingai-searchcrawlerdata-extractionfirecrawl-alternativelarge-language-modelllmmarkdownragscrapingscraping-pythonweb-crawlerweb-crawlersweb-dataweb-data-extractionweb-scraperweb-scrapingweb-searchwebscraping
changed pydantic with langchain_pydantic
Marco Vinciguerraa96617d6f88f
diff --git a/examples/anthropic/search_graph_schema_haiku.py b/examples/anthropic/search_graph_schema_haiku.pyindex 1158d58a..0ccafa79 100644--- a/examples/anthropic/search_graph_schema_haiku.py+++ b/examples/anthropic/search_graph_schema_haiku.py@@ -5,7 +5,7 @@ Example of Search Graphimport osfrom typing import Listfrom dotenv import load_dotenv-from pydantic import BaseModel, Field+from langchain_core.pydantic_v1 import BaseModel, Fieldfrom scrapegraphai.graphs import SearchGraphload_dotenv()diff --git a/examples/anthropic/smart_scraper_schema_haiku.py b/examples/anthropic/smart_scraper_schema_haiku.pyindex bd447a06..0e70aeb5 100644--- a/examples/anthropic/smart_scraper_schema_haiku.py+++ b/examples/anthropic/smart_scraper_schema_haiku.py@@ -4,7 +4,7 @@ Basic example of scraping pipeline using SmartScraper using Azure OpenAI Keyimport osfrom typing import List-from pydantic import BaseModel, Field+from langchain_core.pydantic_v1 import BaseModel, Fieldfrom dotenv import load_dotenvfrom scrapegraphai.graphs import SmartScraperGraphfrom scrapegraphai.utils import prettify_exec_infodiff --git a/examples/azure/search_graph_schema_azure.py b/examples/azure/search_graph_schema_azure.pyindex 629c92ab..ba80b373 100644--- a/examples/azure/search_graph_schema_azure.py+++ b/examples/azure/search_graph_schema_azure.py@@ -9,7 +9,7 @@ load_dotenv()from scrapegraphai.graphs import SearchGraphfrom scrapegraphai.utils import convert_to_csv, convert_to_json, prettify_exec_info-from pydantic import BaseModel, Field+from langchain_core.pydantic_v1 import BaseModel, Fieldfrom typing import List# ************************************************diff --git a/examples/azure/smart_scraper_schema_azure.py b/examples/azure/smart_scraper_schema_azure.pyindex d0816bf5..5c882c46 100644--- a/examples/azure/smart_scraper_schema_azure.py+++ b/examples/azure/smart_scraper_schema_azure.py@@ -5,7 +5,7 @@ Basic example of scraping pipeline using SmartScraper with schemaimport osimport jsonfrom typing import List-from pydantic import BaseModel, Field+from langchain_core.pydantic_v1 import BaseModel, Fieldfrom dotenv import load_dotenvfrom scrapegraphai.graphs import SmartScraperGraphdiff --git a/examples/bedrock/search_graph_schema_bedrock.py b/examples/bedrock/search_graph_schema_bedrock.pyindex a49ba730..ad2cadab 100644--- a/examples/bedrock/search_graph_schema_bedrock.py+++ b/examples/bedrock/search_graph_schema_bedrock.py@@ -4,7 +4,7 @@ Example of Search Graphfrom scrapegraphai.graphs import SearchGraphfrom scrapegraphai.utils import convert_to_csv, convert_to_json, prettify_exec_info-from pydantic import BaseModel, Field+from langchain_core.pydantic_v1 import BaseModel, Fieldfrom typing import List# ************************************************diff --git a/examples/bedrock/smart_scraper_schema_bedrock.py b/examples/bedrock/smart_scraper_schema_bedrock.pyindex 2829efec..02f83029 100644--- a/examples/bedrock/smart_scraper_schema_bedrock.py+++ b/examples/bedrock/smart_scraper_schema_bedrock.py@@ -2,7 +2,7 @@Basic example of scraping pipeline using SmartScraper"""from typing import List-from pydantic import BaseModel, Field+from langchain_core.pydantic_v1 import BaseModel, Fieldfrom scrapegraphai.graphs import SmartScraperGraphfrom scrapegraphai.utils import prettify_exec_infodiff --git a/examples/deepseek/search_graph_schema_deepseek.py b/examples/deepseek/search_graph_schema_deepseek.pyindex 1471ede1..9966602d 100644--- a/examples/deepseek/search_graph_schema_deepseek.py+++ b/examples/deepseek/search_graph_schema_deepseek.py@@ -9,7 +9,7 @@ load_dotenv()from scrapegraphai.graphs import SearchGraphfrom scrapegraphai.utils import convert_to_csv, convert_to_json, prettify_exec_info-from pydantic import BaseModel, Field+from langchain_core.pydantic_v1 import BaseModel, Fieldfrom typing import List# ************************************************diff --git a/examples/deepseek/smart_scraper_schema_deepseek.py b/examples/deepseek/smart_scraper_schema_deepseek.pyindex 722e02bf..6d924b71 100644--- a/examples/deepseek/smart_scraper_schema_deepseek.py+++ b/examples/deepseek/smart_scraper_schema_deepseek.py@@ -4,7 +4,7 @@ Basic example of scraping pipeline using SmartScraperimport osfrom typing import List-from pydantic import BaseModel, Field+from langchain_core.pydantic_v1 import BaseModel, Fieldfrom dotenv import load_dotenvfrom scrapegraphai.graphs import SmartScraperGraphfrom scrapegraphai.utils import prettify_exec_infodiff --git a/examples/extras/serch_graph_scehma.py b/examples/extras/serch_graph_scehma.pyindex 493a4367..fe66530d 100644--- a/examples/extras/serch_graph_scehma.py+++ b/examples/extras/serch_graph_scehma.py@@ -5,7 +5,7 @@ Example of Search Graphimport osfrom dotenv import load_dotenvfrom scrapegraphai.graphs import SearchGraph-from pydantic import BaseModel, Field+from langchain_core.pydantic_v1 import BaseModel, Fieldfrom typing import Listload_dotenv()diff --git a/examples/fireworks/pdf_scraper_multi_fireworks.py b/examples/fireworks/pdf_scraper_multi_fireworks.pyindex c1077061..bbf3808a 100644--- a/examples/fireworks/pdf_scraper_multi_fireworks.py+++ b/examples/fireworks/pdf_scraper_multi_fireworks.py@@ -5,7 +5,7 @@ import osimport jsonfrom typing import Listfrom dotenv import load_dotenv-from pydantic import BaseModel, Field+from langchain_core.pydantic_v1 import BaseModel, Fieldfrom scrapegraphai.graphs import PdfScraperMultiGraphload_dotenv()diff --git a/examples/fireworks/script_generator_schema_fireworks.py b/examples/fireworks/script_generator_schema_fireworks.pyindex 6355a4e8..f6f90ddf 100644--- a/examples/fireworks/script_generator_schema_fireworks.py+++ b/examples/fireworks/script_generator_schema_fireworks.py@@ -5,7 +5,7 @@ Basic example of scraping pipeline using ScriptCreatorGraphimport osfrom typing import Listfrom dotenv import load_dotenv-from pydantic import BaseModel, Field+from langchain_core.pydantic_v1 import BaseModel, Fieldfrom scrapegraphai.graphs import ScriptCreatorGraphfrom scrapegraphai.utils import prettify_exec_infodiff --git a/examples/fireworks/search_graph_schema_fireworks.py b/examples/fireworks/search_graph_schema_fireworks.pyindex d88d991e..a16d3ae2 100644--- a/examples/fireworks/search_graph_schema_fireworks.py+++ b/examples/fireworks/search_graph_schema_fireworks.py@@ -9,7 +9,7 @@ load_dotenv()from scrapegraphai.graphs import SearchGraphfrom scrapegraphai.utils import convert_to_csv, convert_to_json, prettify_exec_info-from pydantic import BaseModel, Field+from langchain_core.pydantic_v1 import BaseModel, Fieldfrom typing import List# ************************************************diff --git a/examples/fireworks/smart_scraper_schema_fireworks.py b/examples/fireworks/smart_scraper_schema_fireworks.pyindex d71593f3..cefb4d7d 100644--- a/examples/fireworks/smart_scraper_schema_fireworks.py+++ b/examples/fireworks/smart_scraper_schema_fireworks.py@@ -5,7 +5,7 @@ Basic example of scraping pipeline using SmartScraper with schemaimport os, jsonfrom typing import Listfrom dotenv import load_dotenv-from pydantic import BaseModel, Field+from langchain_core.pydantic_v1 import BaseModel, Fieldfrom scrapegraphai.graphs import SmartScraperGraphload_dotenv()diff --git a/examples/google_genai/search_graph_schema_gemini.py b/examples/google_genai/search_graph_schema_gemini.pyindex e4b7983d..3c44dd2d 100644--- a/examples/google_genai/search_graph_schema_gemini.py+++ b/examples/google_genai/search_graph_schema_gemini.py@@ -9,7 +9,7 @@ load_dotenv()from scrapegraphai.graphs import SearchGraphfrom scrapegraphai.utils import convert_to_csv, convert_to_json, prettify_exec_info-from pydantic import BaseModel, Field+from langchain_core.pydantic_v1 import BaseModel, Fieldfrom typing import List# ************************************************diff --git a/examples/google_genai/smart_scraper_schema_gemini.py b/examples/google_genai/smart_scraper_schema_gemini.pyindex 6c817e20..8096c466 100644--- a/examples/google_genai/smart_scraper_schema_gemini.py+++ b/examples/google_genai/smart_scraper_schema_gemini.py@@ -4,7 +4,7 @@ Basic example of scraping pipeline using SmartScraper with schemaimport osfrom typing import List-from pydantic import BaseModel, Field+from langchain_core.pydantic_v1 import BaseModel, Fieldfrom dotenv import load_dotenvfrom scrapegraphai.utils import prettify_exec_infofrom scrapegraphai.graphs import SmartScraperGraphdiff --git a/examples/google_vertexai/search_graph_schema_gemini.py b/examples/google_vertexai/search_graph_schema_gemini.pyindex 54586c7e..7e73c584 100644--- a/examples/google_vertexai/search_graph_schema_gemini.py+++ b/examples/google_vertexai/search_graph_schema_gemini.py@@ -9,7 +9,7 @@ load_dotenv()from scrapegraphai.graphs import SearchGraphfrom scrapegraphai.utils import convert_to_csv, convert_to_json, prettify_exec_info-from pydantic import BaseModel, Field+from langchain_core.pydantic_v1 import BaseModel, Fieldfrom typing import List# ************************************************diff --git a/examples/google_vertexai/smart_scraper_schema_gemini.py b/examples/google_vertexai/smart_scraper_schema_gemini.pyindex 541ce9aa..18e0ef5b 100644--- a/examples/google_vertexai/smart_scraper_schema_gemini.py+++ b/examples/google_vertexai/smart_scraper_schema_gemini.py@@ -4,7 +4,7 @@ Basic example of scraping pipeline using SmartScraper with schemaimport osfrom typing import List-from pydantic import BaseModel, Field+from langchain_core.pydantic_v1 import BaseModel, Fieldfrom dotenv import load_dotenvfrom scrapegraphai.utils import prettify_exec_infofrom scrapegraphai.graphs import SmartScraperGraphdiff --git a/examples/groq/search_graph_schema_groq.py b/examples/groq/search_graph_schema_groq.pyindex 4cc2209d..d5253f2c 100644--- a/examples/groq/search_graph_schema_groq.py+++ b/examples/groq/search_graph_schema_groq.py@@ -9,7 +9,7 @@ load_dotenv()from scrapegraphai.graphs import SearchGraphfrom scrapegraphai.utils import convert_to_csv, convert_to_json, prettify_exec_info-from pydantic import BaseModel, Field+from langchain_core.pydantic_v1 import BaseModel, Fieldfrom typing import List# ************************************************diff --git a/examples/groq/smart_scraper_schema_groq.py b/examples/groq/smart_scraper_schema_groq.pyindex f9c1a40b..b2b377b3 100644--- a/examples/groq/smart_scraper_schema_groq.py+++ b/examples/groq/smart_scraper_schema_groq.py@@ -4,7 +4,7 @@ Basic example of scraping pipeline using SmartScraper with schemaimport os, jsonfrom typing import List-from pydantic import BaseModel, Field+from langchain_core.pydantic_v1 import BaseModel, Fieldfrom dotenv import load_dotenvfrom scrapegraphai.graphs import SmartScraperGraphfrom scrapegraphai.utils import prettify_exec_infodiff --git a/examples/integrations/indexify_node_example.py b/examples/integrations/indexify_node_example.pyindex 07a184ec..a77b6bd2 100644--- a/examples/integrations/indexify_node_example.py+++ b/examples/integrations/indexify_node_example.py@@ -8,7 +8,7 @@ from typing import Listfrom dotenv import load_dotenvload_dotenv()-from pydantic import BaseModel, Field+from langchain_core.pydantic_v1 import BaseModel, Fieldfrom scrapegraphai.graphs import SmartScraperGraphfrom scrapegraphai.integrations import IndexifyNodediff --git a/examples/local_models/search_graph_schema_ollama.py b/examples/local_models/search_graph_schema_ollama.pyindex fb87954f..6720383c 100644--- a/examples/local_models/search_graph_schema_ollama.py+++ b/examples/local_models/search_graph_schema_ollama.py@@ -4,7 +4,7 @@ Example of Search Graphfrom scrapegraphai.graphs import SearchGraphfrom scrapegraphai.utils import convert_to_csv, convert_to_json, prettify_exec_info-from pydantic import BaseModel, Field+from langchain_core.pydantic_v1 import BaseModel, Fieldfrom typing import List# ************************************************diff --git a/examples/local_models/smart_scraper_schema_ollama.py b/examples/local_models/smart_scraper_schema_ollama.pyindex 088e2eed..a732aa8d 100644--- a/examples/local_models/smart_scraper_schema_ollama.py+++ b/examples/local_models/smart_scraper_schema_ollama.py@@ -3,7 +3,7 @@ Basic example of scraping pipeline using SmartScraper with schema"""import jsonfrom typing import List-from pydantic import BaseModel, Field+from langchain_core.pydantic_v1 import BaseModel, Fieldfrom scrapegraphai.graphs import SmartScraperGraphfrom scrapegraphai.utils import prettify_exec_infodiff --git a/examples/mistral/pdf_scraper_multi_mistral.py b/examples/mistral/pdf_scraper_multi_mistral.pyindex e9f1613f..18b8a1f0 100644--- a/examples/mistral/pdf_scraper_multi_mistral.py+++ b/examples/mistral/pdf_scraper_multi_mistral.py@@ -5,7 +5,7 @@ import osimport jsonfrom typing import Listfrom dotenv import load_dotenv-from pydantic import BaseModel, Field+from langchain_core.pydantic_v1 import BaseModel, Fieldfrom scrapegraphai.graphs import PdfScraperMultiGraphload_dotenv()diff --git a/examples/mistral/script_generator_schema_mistral.py b/examples/mistral/script_generator_schema_mistral.pyindex b9c77285..beaca4c1 100644--- a/examples/mistral/script_generator_schema_mistral.py+++ b/examples/mistral/script_generator_schema_mistral.py@@ -6,8 +6,7 @@ import osfrom dotenv import load_dotenvfrom scrapegraphai.graphs import ScriptCreatorGraphfrom scrapegraphai.utils import prettify_exec_info--from pydantic import BaseModel, Field+from langchain_core.pydantic_v1 import BaseModel, Fieldfrom typing import Listload_dotenv()diff --git a/examples/mistral/search_graph_schema_mistral.py b/examples/mistral/search_graph_schema_mistral.pyindex 7c71c0b1..d804d984 100644--- a/examples/mistral/search_graph_schema_mistral.py+++ b/examples/mistral/search_graph_schema_mistral.py@@ -5,7 +5,7 @@ Example of Search Graphimport osfrom typing import Listfrom dotenv import load_dotenv-from pydantic import BaseModel, Field+from langchain_core.pydantic_v1 import BaseModel, Fieldfrom scrapegraphai.graphs import SearchGraphfrom scrapegraphai.utils import convert_to_csv, convert_to_json, prettify_exec_infodiff --git a/examples/mistral/smart_scraper_schema_mistral.py b/examples/mistral/smart_scraper_schema_mistral.pyindex 3e1e505a..517bd743 100644--- a/examples/mistral/smart_scraper_schema_mistral.py+++ b/examples/mistral/smart_scraper_schema_mistral.py@@ -5,7 +5,7 @@ Basic example of scraping pipeline using SmartScraper with schemaimport os, jsonfrom typing import Listfrom dotenv import load_dotenv-from pydantic import BaseModel, Field+from langchain_core.pydantic_v1 import BaseModel, Fieldfrom scrapegraphai.graphs import SmartScraperGraphload_dotenv()diff --git a/examples/nemotron/script_generator_schema_nemotron.py b/examples/nemotron/script_generator_schema_nemotron.pyindex 3f0713a4..09d0d682 100644--- a/examples/nemotron/script_generator_schema_nemotron.py+++ b/examples/nemotron/script_generator_schema_nemotron.py@@ -7,7 +7,7 @@ from dotenv import load_dotenvfrom scrapegraphai.graphs import ScriptCreatorGraphfrom scrapegraphai.utils import prettify_exec_info-from pydantic import BaseModel, Field+from langchain_core.pydantic_v1 import BaseModel, Fieldfrom typing import Listload_dotenv()diff --git a/examples/nemotron/search_graph_schema_nemotron.py b/examples/nemotron/search_graph_schema_nemotron.pyindex eec72daf..84150f53 100644--- a/examples/nemotron/search_graph_schema_nemotron.py+++ b/examples/nemotron/search_graph_schema_nemotron.py@@ -9,7 +9,7 @@ load_dotenv()from scrapegraphai.graphs import SearchGraphfrom scrapegraphai.utils import convert_to_csv, convert_to_json, prettify_exec_info-from pydantic import BaseModel, Field+from langchain_core.pydantic_v1 import BaseModel, Fieldfrom typing import List# ************************************************diff --git a/examples/nemotron/smart_scraper_schema_nemotron.py b/examples/nemotron/smart_scraper_schema_nemotron.pyindex e1462e85..11ce4de2 100644--- a/examples/nemotron/smart_scraper_schema_nemotron.py+++ b/examples/nemotron/smart_scraper_schema_nemotron.py@@ -5,7 +5,7 @@ Basic example of scraping pipeline using SmartScraper with schemaimport os, jsonfrom typing import Listfrom dotenv import load_dotenv-from pydantic import BaseModel, Field+from langchain_core.pydantic_v1 import BaseModel, Fieldfrom scrapegraphai.graphs import SmartScraperGraphload_dotenv()diff --git a/examples/oneapi/search_graph_schema_oneapi.py b/examples/oneapi/search_graph_schema_oneapi.pyindex 7fc44539..d99bca00 100644--- a/examples/oneapi/search_graph_schema_oneapi.py+++ b/examples/oneapi/search_graph_schema_oneapi.py@@ -4,7 +4,7 @@ Example of Search Graphfrom scrapegraphai.graphs import SearchGraphfrom scrapegraphai.utils import convert_to_csv, convert_to_json, prettify_exec_info-from pydantic import BaseModel, Field+from langchain_core.pydantic_v1 import BaseModel, Fieldfrom typing import List# ************************************************diff --git a/examples/oneapi/smart_scraper_schema_oneapi.py b/examples/oneapi/smart_scraper_schema_oneapi.pyindex 0c011bb6..b12bbf66 100644--- a/examples/oneapi/smart_scraper_schema_oneapi.py+++ b/examples/oneapi/smart_scraper_schema_oneapi.py@@ -2,7 +2,7 @@Basic example of scraping pipeline using SmartScraper and OneAPI"""from typing import List-from pydantic import BaseModel, Field+from langchain_core.pydantic_v1 import BaseModel, Fieldfrom scrapegraphai.graphs import SmartScraperGraphfrom scrapegraphai.utils import prettify_exec_infodiff --git a/examples/openai/pdf_scraper_multi_openai.py b/examples/openai/pdf_scraper_multi_openai.pyindex 91e219e3..a405da43 100644--- a/examples/openai/pdf_scraper_multi_openai.py+++ b/examples/openai/pdf_scraper_multi_openai.py@@ -5,7 +5,7 @@ import osimport jsonfrom typing import Listfrom dotenv import load_dotenv-from pydantic import BaseModel, Field+from langchain_core.pydantic_v1 import BaseModel, Fieldfrom scrapegraphai.graphs import PdfScraperMultiGraphload_dotenv()diff --git a/examples/openai/script_generator_schema_openai.py b/examples/openai/script_generator_schema_openai.pyindex 5e542c53..e8e7d111 100644--- a/examples/openai/script_generator_schema_openai.py+++ b/examples/openai/script_generator_schema_openai.py@@ -7,7 +7,7 @@ from dotenv import load_dotenvfrom scrapegraphai.graphs import ScriptCreatorGraphfrom scrapegraphai.utils import prettify_exec_info-from pydantic import BaseModel, Field+from langchain_core.pydantic_v1 import BaseModel, Fieldfrom typing import Listload_dotenv()diff --git a/examples/openai/search_graph_schema_openai.py b/examples/openai/search_graph_schema_openai.pyindex 571f08b0..c0440955 100644--- a/examples/openai/search_graph_schema_openai.py+++ b/examples/openai/search_graph_schema_openai.py@@ -5,7 +5,7 @@ Example of Search Graphimport osfrom typing import Listfrom dotenv import load_dotenv-from pydantic import BaseModel, Field+from langchain_core.pydantic_v1 import BaseModel, Fieldfrom scrapegraphai.graphs import SearchGraphfrom scrapegraphai.utils import convert_to_csv, convert_to_json, prettify_exec_infodiff --git a/examples/openai/smart_scraper_schema_openai.py b/examples/openai/smart_scraper_schema_openai.pyindex 0c1618d6..f1ce3d14 100644--- a/examples/openai/smart_scraper_schema_openai.py+++ b/examples/openai/smart_scraper_schema_openai.py@@ -5,7 +5,7 @@ Basic example of scraping pipeline using SmartScraper with schemaimport os, jsonfrom typing import Listfrom dotenv import load_dotenv-from pydantic import BaseModel, Field+from langchain_core.pydantic_v1 import BaseModel, Fieldfrom scrapegraphai.graphs import SmartScraperGraphload_dotenv()