Skip to content

Python scraper based on AI

Renamed smart_scraper_multi_abstract_graph back to smart_scraper_multi_graph.

roryhaung3e8f047ab606
diff --git a/scrapegraphai/graphs/__init__.py b/scrapegraphai/graphs/__init__.py
index bfb8e300..9c8bc820 100644
--- a/scrapegraphai/graphs/__init__.py
+++ b/scrapegraphai/graphs/__init__.py
@@ -13,7 +13,7 @@ from .json_scraper_graph import JSONScraperGraph
from .csv_scraper_graph import CSVScraperGraph
from .omni_scraper_graph import OmniScraperGraph
from .omni_search_graph import OmniSearchGraph
-from .smart_scraper_multi_abstract_graph import SmartScraperMultiAbstractGraph
+from .smart_scraper_multi_graph import SmartScraperMultiGraph
from .json_scraper_multi_graph import JSONScraperMultiGraph
from .csv_scraper_multi_graph import CSVScraperMultiGraph
from .xml_scraper_multi_graph import XMLScraperMultiGraph
@@ -25,5 +25,5 @@ from .screenshot_scraper_graph import ScreenshotScraperGraph
from .smart_scraper_multi_concat_graph import SmartScraperMultiConcatGraph
from .code_generator_graph import CodeGeneratorGraph
from .depth_search_graph import DepthSearchGraph
-from .smart_scraper_multi_graph import SmartScraperMultiGraph
+from .smart_scraper_multi_lite_graph import SmartScraperMultiLiteGraph
from .scrape_graph import ScrapeGraph
diff --git a/scrapegraphai/graphs/smart_scraper_multi_abstract_graph.py b/scrapegraphai/graphs/smart_scraper_multi_graph.py
similarity index 84%
rename from scrapegraphai/graphs/smart_scraper_multi_abstract_graph.py
rename to scrapegraphai/graphs/smart_scraper_multi_graph.py
index f5ffdf96..420dc784 100644
--- a/scrapegraphai/graphs/smart_scraper_multi_abstract_graph.py
+++ b/scrapegraphai/graphs/smart_scraper_multi_graph.py
@@ -13,12 +13,12 @@ from ..nodes import (
)
from ..utils.copy import safe_deepcopy
-class SmartScraperMultiAbstractGraph(AbstractGraph):
+class SmartScraperMultiGraph(AbstractGraph):
"""
- SmartScraperMultiAbstractGraph is a scraping pipeline that scrapes a
+ SmartScraperMultiGraph is a scraping pipeline that scrapes a
list of URLs and generates answers to a given prompt.
It only requires a user prompt and a list of URLs.
- The difference with the SmartScraperMultiGraph is that in this case the content will be abstracted
+ The difference with the SmartScraperMultiLiteGraph is that in this case the content will be abstracted
by llm and then merged finally passed to the llm.
Attributes:
@@ -36,11 +36,15 @@ class SmartScraperMultiAbstractGraph(AbstractGraph):
schema (Optional[BaseModel]): The schema for the graph output.
Example:
- >>> smart_scraper_multi_abstract_graph = SmartScraperMultiAbstractGraph(
- ... "What is Chioggia famous for?",
- ... {"llm": {"model": "openai/gpt-3.5-turbo"}}
+ >>> smart_scraper_multi_graph = SmartScraperMultiGraph(
+ ... prompt="Who is Marco Perini?",
+ ... source= [
+ ... "https://perinim.github.io/",
+ ... "https://perinim.github.io/cv/"
+ ... ],
+ ... config={"llm": {"model": "openai/gpt-3.5-turbo"}}
... )
- >>> result = smart_scraper_multi_abstract_graph.run()
+ >>> result = smart_scraper_multi_graph.run()
"""
def __init__(self, prompt: str, source: List[str],