Skip to content

Commit e72de2e

Browse files
committed
doc: update readme
1 parent 2c5a59b commit e72de2e

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

scrapegraph-js/README.md

+20
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,26 @@ const schema = z.object({
107107
})();
108108
```
109109

110+
### Search Scraping
111+
112+
Search and extract information from multiple web sources using AI.
113+
114+
```javascript
115+
import { searchScraper } from 'scrapegraph-js';
116+
117+
const apiKey = 'your-api-key';
118+
const prompt = 'What is the latest version of Python and what are its main features?';
119+
120+
(async () => {
121+
try {
122+
const response = await searchScraper(apiKey, prompt);
123+
console.log(response.result);
124+
} catch (error) {
125+
console.error('Error:', error);
126+
}
127+
})();
128+
```
129+
110130
### Scraping local HTML
111131

112132
Extract structured data from local HTML content

0 commit comments

Comments
 (0)