Update smart_scraper_openai.py

This commit is contained in:
DragonelRoland 2024-07-20 14:25:48 +02:00 committed by GitHub
parent b4b90b3c12
commit 0b1539341c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -5,7 +5,8 @@ Basic example of scraping pipeline using SmartScraper
import os, json
from scrapegraphai.graphs import SmartScraperGraph
from 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_info
graph_config = {
"llm": {
"api_key": "s",
"api_key": os.getenv("OPENAI_API_KEY"),
"model": "gpt-3.5-turbo",
},
"verbose": True,