@tothalex/cloud 0.0.45 → 0.0.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/cloud/spider.d.ts +11 -0
package/package.json
CHANGED
package/src/cloud/spider.d.ts
CHANGED
|
@@ -49,6 +49,17 @@ declare module 'cloud/spider' {
|
|
|
49
49
|
redirectPolicy?: RedirectPolicy
|
|
50
50
|
/** Only crawl HTML pages, skip other resources (default: false) */
|
|
51
51
|
onlyHtml?: boolean
|
|
52
|
+
|
|
53
|
+
/** Wait for a CSS selector to appear before returning (chrome only) */
|
|
54
|
+
waitForSelector?: string
|
|
55
|
+
/** Wait for a fixed delay in milliseconds before returning (chrome only) */
|
|
56
|
+
waitForDelay?: number
|
|
57
|
+
/** Max timeout in milliseconds for all waitFor operations (chrome only, default: 30000) */
|
|
58
|
+
waitForTimeout?: number
|
|
59
|
+
/** Wait for network to become idle before returning (chrome only) */
|
|
60
|
+
waitForIdleNetwork?: boolean
|
|
61
|
+
/** Wait for page navigations/redirects to complete before returning (chrome only) */
|
|
62
|
+
waitForPageNavigations?: boolean
|
|
52
63
|
}
|
|
53
64
|
|
|
54
65
|
/** A crawled page with its content */
|