Mika Scraper / RetryOptions
Interface: RetryOptions
Defined in: src/downloader/tiktok.ts:52
The RetryOptions
interface specifies the configuration for retrying failed requests in the Mika Scraper.
Properties
retries?
optional
retries:number
The maximum number of times to retry a failed request. If not specified, the default value is 3
. Exceeding this limit will result in a request failure.
delayMs?
optional
delayMs:number
The delay in milliseconds between consecutive retry attempts. This allows for back-off strategies to prevent overwhelming the server. If not specified, the default delay is 1000
milliseconds (1 second).
Example
Here is an example of how to use the RetryOptions
interface:
const options: RetryOptions = {
retries: 5,
delayMs: 2000
};
Last updated on