You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: scrapegraph-js/README.md
+103Lines changed: 103 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,7 @@ Official JavaScript/TypeScript SDK for the ScrapeGraph AI API - Smart web scrapi
15
15
- 🔍 Detailed error handling
16
16
- ⚡ Automatic retries and logging
17
17
- 🔐 Secure API authentication
18
+
- 🔧 AI-powered schema generation
18
19
19
20
## 📦 Installation
20
21
@@ -395,6 +396,108 @@ const feedbackText = 'This is a test feedback message.';
395
396
})();
396
397
```
397
398
399
+
### AI-Powered Schema Generation
400
+
401
+
Generate JSON schemas from natural language prompts using AI. This feature helps you create structured data schemas for web scraping and data extraction.
402
+
403
+
#### Basic Schema Generation
404
+
405
+
```javascript
406
+
import { generateSchema } from'scrapegraph-js';
407
+
408
+
constapiKey='your-api-key';
409
+
constprompt='Find laptops with specifications like brand, processor, RAM, storage, and price';
0 commit comments