@@ -85,7 +85,14 @@ scrapegraph-sdk/
8585- ** aiohttp** 3.10+ - Async HTTP client
8686- ** pydantic** 2.10.2+ - Data validation and modeling
8787- ** python-dotenv** 1.0.1+ - Environment variable management
88- - ** beautifulsoup4** 4.12.3+ - HTML parsing (for pagination)
88+
89+ ** Optional Dependencies:**
90+ - ** beautifulsoup4** 4.12.3+ - HTML parsing (for HTML validation when using ` website_html ` )
91+ - Install with: ` pip install scrapegraph-py[html] `
92+ - ** langchain** 0.3.0+ - Langchain integration for AI workflows
93+ - ** langchain-community** 0.2.11+ - Community integrations for Langchain
94+ - ** langchain-scrapegraph** 0.1.0+ - ScrapeGraph integration for Langchain
95+ - Install with: ` pip install scrapegraph-py[langchain] `
8996
9097** Development Tools:**
9198- ** pytest** 7.4.0+ - Testing framework
@@ -879,12 +886,17 @@ npm publish
879886
880887# ## Python SDK Dependencies
881888
882- **Runtime:**
889+ **Core Runtime:**
883890- **requests**: Sync HTTP client
884891- **aiohttp**: Async HTTP client
885892- **pydantic**: Data validation
886893- **python-dotenv**: Environment variables
887- - **beautifulsoup4**: HTML parsing
894+
895+ **Optional Runtime (install with extras):**
896+ - **beautifulsoup4**: HTML parsing (required when using `website_html`)
897+ - Install with : ` pip install scrapegraph-py[html]`
898+ - **langchain, langchain-community, langchain-scrapegraph**: Langchain integration
899+ - Install with : ` pip install scrapegraph-py[langchain]`
888900
889901**Development:**
890902- **pytest & plugins**: Testing framework
@@ -918,7 +930,7 @@ Both SDKs depend on the ScrapeGraph AI API:
918930| **Architecture** | Class-based (Client, AsyncClient) | Function-based |
919931| **Async Support** | ✅ Separate AsyncClient | ✅ All functions async |
920932| **Type Safety** | ✅ Pydantic models, mypy | ⚠️ JSDoc comments |
921- | **Dependencies** | 5 runtime deps | 0 runtime deps |
933+ | **Dependencies** | 4 core + 2 optional extras | 0 runtime deps |
922934| **Testing** | pytest with mocking | Manual tests |
923935| **Documentation** | MkDocs auto-generated | README examples |
924936| **Package Size** | ~50KB | ~20KB |
0 commit comments