Official SDKs
Python SDK
Official Python SDK for ScrapeGraphAI
Installation
Install the package using pip:
Features
- AI-Powered Extraction: Advanced web scraping using artificial intelligence
- Flexible Clients: Both synchronous and asynchronous support
- Type Safety: Structured output with Pydantic schemas
- Production Ready: Detailed logging and automatic retries
- Developer Friendly: Comprehensive error handling
Quick Start
Initialize the client with your API key:
You can also set the SGAI_API_KEY
environment variable and initialize the client without parameters: client = Client()
Services
SmartScraper
Extract specific information from any webpage using AI:
LocalScraper
Process local HTML content with AI extraction:
Markdownify
Convert any webpage into clean, formatted markdown:
Async Support
All endpoints support asynchronous operations:
Feedback
Help us improve by submitting feedback programmatically:
Support
Was this page helpful?