We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4b90b3 commit 0b15393Copy full SHA for 0b15393
examples/openai/smart_scraper_openai.py
@@ -5,7 +5,8 @@
5
import os, json
6
from scrapegraphai.graphs import SmartScraperGraph
7
from scrapegraphai.utils import prettify_exec_info
8
-
+from dotenv import load_dotenv
9
+load_dotenv()
10
11
# ************************************************
12
# Define the configuration for the graph
@@ -14,7 +15,7 @@
14
15
16
graph_config = {
17
"llm": {
- "api_key": "s",
18
+ "api_key": os.getenv("OPENAI_API_KEY"),
19
"model": "gpt-3.5-turbo",
20
},
21
"verbose": True,
0 commit comments