File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ dependencies = [
2626 " pydantic>=2.0.0" ,
2727 " jsonschema>=4.0.0" ,
2828 " requests>=2.31.0" , # For server-side API calls
29+ " aiohttp>=3.9.0" , # For async API calls
2930 " playwright-stealth>=1.0.6" , # Bot evasion and stealth mode
3031 " markdownify>=0.11.6" , # Enhanced HTML to Markdown conversion
3132]
Original file line number Diff line number Diff line change 88import time
99from typing import Any , Optional
1010
11- import aiohttp
1211import requests
1312
1413from .browser import AsyncSentienceBrowser , SentienceBrowser
@@ -468,6 +467,9 @@ async def _snapshot_via_api_async(
468467 }
469468
470469 try :
470+ # Lazy import aiohttp - only needed for async API calls
471+ import aiohttp
472+
471473 async with aiohttp .ClientSession () as session :
472474 async with session .post (
473475 f"{ browser .api_url } /v1/snapshot" ,
You can’t perform that action at this time.
0 commit comments