Skip to content

Commit 2c4d06a

Browse files
committed
Update README.md
1 parent d1b2104 commit 2c4d06a

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

Diff for: README.md

+16-6
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ graph_config = {
8787

8888
# Create the SmartScraperGraph instance
8989
smart_scraper_graph = SmartScraperGraph(
90-
prompt="Find some information about what does the company do, the name and a contact email.",
91-
source="https://scrapegraphai.com/",
90+
prompt="Extract me all the news from the website",
91+
source="https://www.wired.com",
9292
config=graph_config
9393
)
9494

@@ -100,10 +100,20 @@ print(json.dumps(result, indent=4))
100100
The output will be a dictionary like the following:
101101

102102
```python
103-
{
104-
"company": "ScrapeGraphAI",
105-
"name": "ScrapeGraphAI Extracting content from websites and local documents using LLM",
106-
"contact_email": "[email protected]"
103+
"result": {
104+
"news": [
105+
{
106+
"title": "The New Jersey Drone Mystery May Not Actually Be That Mysterious",
107+
"link": "https://www.wired.com/story/new-jersey-drone-mystery-maybe-not-drones/",
108+
"author": "Lily Hay Newman"
109+
},
110+
{
111+
"title": "Former ByteDance Intern Accused of Sabotage Among Winners of Prestigious AI Award",
112+
"link": "https://www.wired.com/story/bytedance-intern-best-paper-neurips/",
113+
"author": "Louise Matsakis"
114+
},
115+
...
116+
]
107117
}
108118
```
109119
There are other pipelines that can be used to extract information from multiple pages, generate Python scripts, or even generate audio files.

0 commit comments

Comments
 (0)