This commit is contained in:
ct
2025-08-11 02:56:17 +08:00
parent 9469d97ddc
commit a2d2ed0117
3 changed files with 8 additions and 11 deletions

View File

@@ -50,7 +50,7 @@ ### Supported Parameters (mapped to Browsershot capabilities)
- `block_cookie_banners`: true/false - Uses cookie banner blocking patterns
- `block_trackers`: true/false - Uses tracker blocking patterns
- `delay`: Wait time before capture in milliseconds (via `setDelay()`)
- `wait_until_network_idle`: Wait for network activity to cease (via `waitUntilNetworkIdle()`)
- Network idle waiting is always enabled for optimal rendering (no parameter needed)
**Screenshot Capture**:
@@ -177,7 +177,7 @@ ### Browsershot Configuration
->windowSize($width, $height)
->setScreenshotType('webp', $quality) // Always WebP format
->setDelay($delayInMs)
->waitUntilNetworkIdle()
// Network idle waiting is always enabled
->timeout($timeoutInSeconds);
// Apply EasyList filters if block_ads is true
@@ -193,7 +193,7 @@ ### Browsershot Configuration
// HTML crawling configuration with EasyList filtering
$browsershot = Browsershot::url($url)
->setDelay($delayInMs)
->waitUntilNetworkIdle()
// Network idle waiting is always enabled
->timeout($timeoutInSeconds);
// Apply EasyList filters if block_ads is true