Python scraper based on AI
Python ai-crawlerai-scrapingai-searchcrawlerdata-extractionfirecrawl-alternativelarge-language-modelllmmarkdownragscrapingscraping-pythonweb-crawlerweb-crawlersweb-dataweb-data-extractionweb-scraperweb-scrapingweb-searchwebscraping
Renamed smart_scraper_multi_abstract_graph back to smart_scraper_multi_graph.
roryhaung3e8f047ab606
diff --git a/scrapegraphai/graphs/__init__.py b/scrapegraphai/graphs/__init__.pyindex bfb8e300..9c8bc820 100644--- a/scrapegraphai/graphs/__init__.py+++ b/scrapegraphai/graphs/__init__.py@@ -13,7 +13,7 @@ from .json_scraper_graph import JSONScraperGraphfrom .csv_scraper_graph import CSVScraperGraphfrom .omni_scraper_graph import OmniScraperGraphfrom .omni_search_graph import OmniSearchGraph-from .smart_scraper_multi_abstract_graph import SmartScraperMultiAbstractGraph+from .smart_scraper_multi_graph import SmartScraperMultiGraphfrom .json_scraper_multi_graph import JSONScraperMultiGraphfrom .csv_scraper_multi_graph import CSVScraperMultiGraphfrom .xml_scraper_multi_graph import XMLScraperMultiGraph@@ -25,5 +25,5 @@ from .screenshot_scraper_graph import ScreenshotScraperGraphfrom .smart_scraper_multi_concat_graph import SmartScraperMultiConcatGraphfrom .code_generator_graph import CodeGeneratorGraphfrom .depth_search_graph import DepthSearchGraph-from .smart_scraper_multi_graph import SmartScraperMultiGraph+from .smart_scraper_multi_lite_graph import SmartScraperMultiLiteGraphfrom .scrape_graph import ScrapeGraphdiff --git a/scrapegraphai/graphs/smart_scraper_multi_abstract_graph.py b/scrapegraphai/graphs/smart_scraper_multi_graph.pysimilarity index 84%rename from scrapegraphai/graphs/smart_scraper_multi_abstract_graph.pyrename to scrapegraphai/graphs/smart_scraper_multi_graph.pyindex 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 alist 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 abstractedby 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],