Python scraper based on AI
Python ai-crawlerai-scrapingai-searchcrawlerdata-extractionfirecrawl-alternativelarge-language-modelllmmarkdownragscrapingscraping-pythonweb-crawlerweb-crawlersweb-dataweb-data-extractionweb-scraperweb-scrapingweb-searchwebscraping
Update script_generator_openai.py
Marco Vinciguerra9eb40e1eae84
diff --git a/examples/openai/script_generator_openai.py b/examples/openai/script_generator_openai.pyindex 119f67e5..13b40530 100644--- a/examples/openai/script_generator_openai.py+++ b/examples/openai/script_generator_openai.py@@ -5,7 +5,7 @@ Basic example of scraping pipeline using SmartScraperimport osimport jsonfrom dotenv import load_dotenv-from scrapegraphai.graphs import SmartScraperGraph+from scrapegraphai.graphs import ScriptCreatorGraphfrom scrapegraphai.utils import prettify_exec_infoload_dotenv()@@ -28,9 +28,10 @@ graph_config = {# Create the SmartScraperGraph instance and run it# ************************************************-smart_scraper_graph = SmartScraperGraph(- prompt="List me what does the company do, the name and a contact email.",- source="https://scrapegraphai.com/",+smart_scraper_graph = ScriptCreatorGraph(+ prompt="List me all the news with their description.",+ # also accepts a string with the already downloaded HTML code+ source="https://perinim.github.io/projects",config=graph_config)