Python scraper based on AI
Python ai-crawlerai-scrapingai-searchcrawlerdata-extractionfirecrawl-alternativelarge-language-modelllmmarkdownragscrapingscraping-pythonweb-crawlerweb-crawlersweb-dataweb-data-extractionweb-scraperweb-scrapingweb-searchwebscraping
Update smart_scraper_openai.py
DragonelRoland0b1539341cfa
diff --git a/examples/openai/smart_scraper_openai.py b/examples/openai/smart_scraper_openai.pyindex 513a9b03..b0515770 100644--- a/examples/openai/smart_scraper_openai.py+++ b/examples/openai/smart_scraper_openai.py@@ -5,7 +5,8 @@ Basic example of scraping pipeline using SmartScraperimport os, jsonfrom scrapegraphai.graphs import SmartScraperGraphfrom scrapegraphai.utils import prettify_exec_info-+from dotenv import load_dotenv+load_dotenv()# ************************************************# Define the configuration for the graph@@ -14,7 +15,7 @@ from scrapegraphai.utils import prettify_exec_infograph_config = {"llm": {- "api_key": "s",+ "api_key": os.getenv("OPENAI_API_KEY"),"model": "gpt-3.5-turbo",},"verbose": True,