Skip to content

Commit 720072c

Browse files
authored
Merge pull request #727 from ScrapeGraphAI/deep_scraper_integration
2 parents 5db4c51 + 0cfb7ec commit 720072c

File tree

85 files changed

+1891
-211
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+1891
-211
lines changed

CHANGELOG.md

Lines changed: 12 additions & 0 deletions

README.md

Lines changed: 3 additions & 18 deletions
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
"""
2+
depth_search_graph_opeani example
3+
"""
4+
import os
5+
from dotenv import load_dotenv
6+
from scrapegraphai.graphs import DepthSearchGraph
7+
8+
load_dotenv()
9+
10+
graph_config = {
11+
"llm": {
12+
"api_key": os.getenv("ANTHROPIC_API_KEY"),
13+
"model": "openai/gpt-4o-mini",
14+
},
15+
"verbose": True,
16+
"headless": False,
17+
"depth": 2,
18+
"only_inside_links": False,
19+
}
20+
21+
search_graph = DepthSearchGraph(
22+
prompt="List me all the projects with their description",
23+
source="https://perinim.github.io",
24+
config=graph_config
25+
)
26+
27+
result = search_graph.run()
28+
print(result)

0 commit comments

Comments
 (0)