Wait (delay)
wait Function
The wait
function allows you to add a delay between actions in your scraping sequence. This can be useful for simulating human-like behavior or waiting for certain elements on the page to load. The delay is specified in milliseconds.
Parameter
Required
Description
delay
Required when wait
is being used
Integer | The required delay to be added in ms
Example Request
curl -X POST 'https://api.webit.live/api/v1/realtime/web' \
--header 'Authorization: Basic <credential string>' \
--header 'Content-Type: application/json' \
--data-raw '{
"url": "https://www.example.com",
"render": true,
"render_flow": [{
"wait": {
"delay": 500
}
}]
}'
Like all Page Interactions, infinite scrolling is capped by the global 120-second session timeout, and will be terminated if this limit is reached.
Last updated