Skip to content

Commit cf47988

Browse files
committed
FIX documentation error
1 parent 968e082 commit cf47988

File tree

1 file changed

+1
-36
lines changed

1 file changed

+1
-36
lines changed

docs/source/getting_started/examples.rst

Lines changed: 1 addition & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Overview
1+
Examples
22
========
33

44
Here some example of the different ways to scrape with ScrapegraphAI
@@ -39,41 +39,6 @@ OpenAI models
3939
print(result)
4040
4141
42-
OpenAI models
43-
^^^^^^^^^^^^^
44-
45-
.. code-block:: python
46-
47-
import os
48-
from dotenv import load_dotenv
49-
from scrapegraphai.graphs import SmartScraperGraph
50-
from scrapegraphai.utils import prettify_exec_info
51-
52-
load_dotenv()
53-
54-
openai_key = os.getenv("OPENAI_APIKEY")
55-
56-
graph_config = {
57-
"llm": {
58-
"api_key": openai_key,
59-
"model": "gpt-3.5-turbo",
60-
},
61-
}
62-
63-
# ************************************************
64-
# Create the SmartScraperGraph instance and run it
65-
# ************************************************
66-
67-
smart_scraper_graph = SmartScraperGraph(
68-
prompt="List me all the projects with their description.",
69-
# also accepts a string with the already downloaded HTML code
70-
source="https://perinim.github.io/projects/",
71-
config=graph_config
72-
)
73-
74-
result = smart_scraper_graph.run()
75-
print(result)
76-
7742
Local models
7843
^^^^^^^^^^^^^
7944

0 commit comments

Comments
 (0)