scrapfly-sdk 0.10.4 → 0.10.6
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/esm/batch.d.ts.map +1 -1
- package/esm/batch.js +6 -0
- package/esm/browserconfig.d.ts +80 -1
- package/esm/browserconfig.d.ts.map +1 -1
- package/esm/browserconfig.js +54 -1
- package/esm/client.d.ts +65 -0
- package/esm/client.d.ts.map +1 -1
- package/esm/client.js +157 -5
- package/esm/crawl.d.ts +4 -0
- package/esm/crawl.d.ts.map +1 -1
- package/esm/crawl.js +4 -0
- package/esm/crawlerresult.d.ts +7 -0
- package/esm/crawlerresult.d.ts.map +1 -1
- package/esm/errors.d.ts +43 -0
- package/esm/errors.d.ts.map +1 -1
- package/esm/errors.js +43 -16
- package/esm/extractionconfig.d.ts +54 -9
- package/esm/extractionconfig.d.ts.map +1 -1
- package/esm/extractionconfig.js +37 -13
- package/esm/logger.d.ts +1 -0
- package/esm/logger.d.ts.map +1 -1
- package/esm/logger.js +1 -0
- package/esm/main.d.ts +29 -0
- package/esm/main.d.ts.map +1 -1
- package/esm/main.js +28 -0
- package/esm/monitoringconfig.d.ts +48 -11
- package/esm/monitoringconfig.d.ts.map +1 -1
- package/esm/monitoringconfig.js +14 -0
- package/esm/result.d.ts +2 -0
- package/esm/result.d.ts.map +1 -1
- package/esm/schedule.d.ts +93 -0
- package/esm/schedule.d.ts.map +1 -0
- package/esm/schedule.js +40 -0
- package/esm/scrapeconfig.d.ts +10 -8
- package/esm/scrapeconfig.d.ts.map +1 -1
- package/esm/scrapeconfig.js +10 -8
- package/esm/screenshotconfig.d.ts +59 -26
- package/esm/screenshotconfig.d.ts.map +1 -1
- package/esm/screenshotconfig.js +38 -26
- package/esm/webhookserver.d.ts +28 -0
- package/esm/webhookserver.d.ts.map +1 -1
- package/esm/webhookserver.js +34 -3
- package/package.json +1 -1
- package/script/batch.d.ts.map +1 -1
- package/script/batch.js +6 -0
- package/script/browserconfig.d.ts +80 -1
- package/script/browserconfig.d.ts.map +1 -1
- package/script/browserconfig.js +54 -1
- package/script/client.d.ts +65 -0
- package/script/client.d.ts.map +1 -1
- package/script/client.js +157 -5
- package/script/crawl.d.ts +4 -0
- package/script/crawl.d.ts.map +1 -1
- package/script/crawl.js +4 -0
- package/script/crawlerresult.d.ts +7 -0
- package/script/crawlerresult.d.ts.map +1 -1
- package/script/errors.d.ts +43 -0
- package/script/errors.d.ts.map +1 -1
- package/script/errors.js +43 -16
- package/script/extractionconfig.d.ts +54 -9
- package/script/extractionconfig.d.ts.map +1 -1
- package/script/extractionconfig.js +37 -13
- package/script/logger.d.ts +1 -0
- package/script/logger.d.ts.map +1 -1
- package/script/logger.js +1 -0
- package/script/main.d.ts +29 -0
- package/script/main.d.ts.map +1 -1
- package/script/main.js +30 -1
- package/script/monitoringconfig.d.ts +48 -11
- package/script/monitoringconfig.d.ts.map +1 -1
- package/script/monitoringconfig.js +14 -0
- package/script/result.d.ts +2 -0
- package/script/result.d.ts.map +1 -1
- package/script/schedule.d.ts +93 -0
- package/script/schedule.d.ts.map +1 -0
- package/script/schedule.js +44 -0
- package/script/scrapeconfig.d.ts +10 -8
- package/script/scrapeconfig.d.ts.map +1 -1
- package/script/scrapeconfig.js +10 -8
- package/script/screenshotconfig.d.ts +59 -26
- package/script/screenshotconfig.d.ts.map +1 -1
- package/script/screenshotconfig.js +38 -26
- package/script/webhookserver.d.ts +28 -0
- package/script/webhookserver.d.ts.map +1 -1
- package/script/webhookserver.js +34 -3
- package/src/batch.ts +7 -1
- package/src/browserconfig.ts +82 -1
- package/src/client.ts +227 -7
- package/src/crawl.ts +4 -0
- package/src/crawlerresult.ts +7 -0
- package/src/errors.ts +43 -16
- package/src/extractionconfig.ts +58 -16
- package/src/logger.ts +2 -0
- package/src/main.ts +37 -0
- package/src/monitoringconfig.ts +49 -11
- package/src/result.ts +2 -0
- package/src/schedule.ts +101 -0
- package/src/scrapeconfig.ts +10 -8
- package/src/screenshotconfig.ts +59 -26
- package/src/webhookserver.ts +34 -3
|
@@ -1,60 +1,139 @@
|
|
|
1
|
+
/** Proxy pool to use for the Cloud Browser session. */
|
|
1
2
|
export declare enum ProxyPool {
|
|
3
|
+
/** Datacenter proxies — fast and cheap; best for non-protected targets. */
|
|
2
4
|
DATACENTER = "datacenter",
|
|
5
|
+
/** Residential proxies — real ISP IPs; required by most anti-bot protections. */
|
|
3
6
|
RESIDENTIAL = "residential"
|
|
4
7
|
}
|
|
8
|
+
/** Operating system to emulate for the Cloud Browser session fingerprint. */
|
|
5
9
|
export declare enum OperatingSystem {
|
|
10
|
+
/** Emulate a Linux browser fingerprint. */
|
|
6
11
|
LINUX = "linux",
|
|
12
|
+
/** Emulate a Windows browser fingerprint. */
|
|
7
13
|
WINDOWS = "windows",
|
|
14
|
+
/** Emulate a macOS browser fingerprint. */
|
|
8
15
|
MACOS = "macos"
|
|
9
16
|
}
|
|
17
|
+
/**
|
|
18
|
+
* User-facing options accepted by {@link BrowserConfig}. All fields are
|
|
19
|
+
* optional; any field left undefined falls back to the Scrapfly Cloud
|
|
20
|
+
* Browser defaults.
|
|
21
|
+
*/
|
|
10
22
|
export type BrowserConfigOptions = {
|
|
23
|
+
/** Proxy pool to route the session through. */
|
|
11
24
|
proxy_pool?: ProxyPool | string;
|
|
25
|
+
/** Operating system fingerprint to emulate. */
|
|
12
26
|
os?: OperatingSystem | string;
|
|
27
|
+
/** Session ID for sticky sessions (IP + cookies reused across scrapes). */
|
|
13
28
|
session?: string;
|
|
29
|
+
/** ISO country code for geo-targeting. */
|
|
14
30
|
country?: string;
|
|
31
|
+
/** Close the browser automatically when the connection drops. */
|
|
15
32
|
auto_close?: boolean;
|
|
33
|
+
/** Session timeout in seconds (max 1800 = 30 minutes). */
|
|
16
34
|
timeout?: number;
|
|
35
|
+
/** Enable debug trace for the session. */
|
|
17
36
|
debug?: boolean;
|
|
37
|
+
/** Browser extensions to load (by ID). */
|
|
18
38
|
extensions?: string[];
|
|
39
|
+
/** Block image requests to speed up navigation. */
|
|
19
40
|
block_images?: boolean;
|
|
41
|
+
/** Block stylesheet requests. */
|
|
20
42
|
block_styles?: boolean;
|
|
43
|
+
/** Block font requests. */
|
|
21
44
|
block_fonts?: boolean;
|
|
45
|
+
/** Block media (video/audio) requests. */
|
|
22
46
|
block_media?: boolean;
|
|
47
|
+
/** Capture a screenshot at session end. */
|
|
23
48
|
screenshot?: boolean;
|
|
49
|
+
/** Viewport resolution, formatted as "widthxheight" (e.g. "1920x1080"). */
|
|
24
50
|
resolution?: string;
|
|
51
|
+
/** URL to navigate to after session start. */
|
|
25
52
|
target_url?: string;
|
|
53
|
+
/** Reuse cached responses where possible. */
|
|
26
54
|
cache?: boolean;
|
|
55
|
+
/** Apply Scrapfly's abuse blacklist. */
|
|
27
56
|
blacklist?: boolean;
|
|
57
|
+
/** Enable anti-scraping-protection bypass. */
|
|
28
58
|
unblock?: boolean;
|
|
59
|
+
/** Timeout in seconds for the unblock step. */
|
|
29
60
|
unblock_timeout?: number;
|
|
61
|
+
/** Browser brand to emulate (e.g. "chrome", "firefox"). */
|
|
30
62
|
browser_brand?: string;
|
|
63
|
+
/** Enable the MCP (Model Context Protocol) bridge. */
|
|
31
64
|
enable_mcp?: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* Arm Scrapium's built-in captcha detector + solver on the first page attach.
|
|
67
|
+
* Turnstile, DataDome slider, reCAPTCHA, GeeTest, PerimeterX hold, and
|
|
68
|
+
* puzzle captchas are handled automatically — no extra CDP calls from the
|
|
69
|
+
* client. Billed per solve; failures cost nothing.
|
|
70
|
+
* See https://scrapfly.io/docs/cloud-browser-api/captcha-solver
|
|
71
|
+
*/
|
|
72
|
+
solve_captcha?: boolean;
|
|
32
73
|
};
|
|
74
|
+
/**
|
|
75
|
+
* Configuration for a Scrapfly Cloud Browser session. Builds the
|
|
76
|
+
* WebSocket URL that clients such as Puppeteer or Playwright can
|
|
77
|
+
* connect to via CDP.
|
|
78
|
+
*/
|
|
33
79
|
export declare class BrowserConfig {
|
|
80
|
+
/** See {@link BrowserConfigOptions.proxy_pool}. */
|
|
34
81
|
proxy_pool?: string;
|
|
82
|
+
/** See {@link BrowserConfigOptions.os}. */
|
|
35
83
|
os?: string;
|
|
84
|
+
/** See {@link BrowserConfigOptions.session}. */
|
|
36
85
|
session?: string;
|
|
86
|
+
/** See {@link BrowserConfigOptions.country}. */
|
|
37
87
|
country?: string;
|
|
88
|
+
/** See {@link BrowserConfigOptions.auto_close}. */
|
|
38
89
|
auto_close?: boolean;
|
|
90
|
+
/** See {@link BrowserConfigOptions.timeout}. */
|
|
39
91
|
timeout?: number;
|
|
92
|
+
/** See {@link BrowserConfigOptions.debug}. */
|
|
40
93
|
debug?: boolean;
|
|
94
|
+
/** See {@link BrowserConfigOptions.extensions}. */
|
|
41
95
|
extensions?: string[];
|
|
96
|
+
/** See {@link BrowserConfigOptions.block_images}. */
|
|
42
97
|
block_images?: boolean;
|
|
98
|
+
/** See {@link BrowserConfigOptions.block_styles}. */
|
|
43
99
|
block_styles?: boolean;
|
|
100
|
+
/** See {@link BrowserConfigOptions.block_fonts}. */
|
|
44
101
|
block_fonts?: boolean;
|
|
102
|
+
/** See {@link BrowserConfigOptions.block_media}. */
|
|
45
103
|
block_media?: boolean;
|
|
104
|
+
/** See {@link BrowserConfigOptions.screenshot}. */
|
|
46
105
|
screenshot?: boolean;
|
|
106
|
+
/** See {@link BrowserConfigOptions.resolution}. */
|
|
47
107
|
resolution?: string;
|
|
108
|
+
/** See {@link BrowserConfigOptions.target_url}. */
|
|
48
109
|
target_url?: string;
|
|
110
|
+
/** See {@link BrowserConfigOptions.cache}. */
|
|
49
111
|
cache?: boolean;
|
|
112
|
+
/** See {@link BrowserConfigOptions.blacklist}. */
|
|
50
113
|
blacklist?: boolean;
|
|
114
|
+
/** See {@link BrowserConfigOptions.unblock}. */
|
|
51
115
|
unblock?: boolean;
|
|
116
|
+
/** See {@link BrowserConfigOptions.unblock_timeout}. */
|
|
52
117
|
unblock_timeout?: number;
|
|
118
|
+
/** See {@link BrowserConfigOptions.browser_brand}. */
|
|
53
119
|
browser_brand?: string;
|
|
120
|
+
/** See {@link BrowserConfigOptions.enable_mcp}. */
|
|
54
121
|
enable_mcp?: boolean;
|
|
122
|
+
/** See {@link BrowserConfigOptions.solve_captcha}. */
|
|
123
|
+
solve_captcha?: boolean;
|
|
124
|
+
/**
|
|
125
|
+
* @param options Session options. See {@link BrowserConfigOptions}.
|
|
126
|
+
* @throws `Error` if `timeout` exceeds the upper bound of 1800 seconds.
|
|
127
|
+
*/
|
|
55
128
|
constructor(options?: BrowserConfigOptions);
|
|
56
129
|
/**
|
|
57
|
-
*
|
|
130
|
+
* Build the WebSocket URL clients use to connect to the Cloud Browser
|
|
131
|
+
* session (compatible with Puppeteer `browserWSEndpoint` and the
|
|
132
|
+
* Playwright `connectOverCDP` API).
|
|
133
|
+
*
|
|
134
|
+
* @param apiKey Scrapfly API key.
|
|
135
|
+
* @param host Optional override for the Cloud Browser host (defaults to `wss://browser.scrapfly.io`).
|
|
136
|
+
* @returns A fully-qualified `wss://…` URL with all options encoded as query parameters.
|
|
58
137
|
*/
|
|
59
138
|
websocketUrl(apiKey: string, host?: string): string;
|
|
60
139
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"browserconfig.d.ts","sourceRoot":"","sources":["../src/browserconfig.ts"],"names":[],"mappings":"AAAA,oBAAY,SAAS;IACnB,UAAU,eAAe;IACzB,WAAW,gBAAgB;CAC5B;AAED,oBAAY,eAAe;IACzB,KAAK,UAAU;IACf,OAAO,YAAY;IACnB,KAAK,UAAU;CAChB;AAED,MAAM,MAAM,oBAAoB,GAAG;IACjC,UAAU,CAAC,EAAE,SAAS,GAAG,MAAM,CAAC;IAChC,EAAE,CAAC,EAAE,eAAe,GAAG,MAAM,CAAC;IAC9B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,OAAO,CA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AE,MAAM,CAAC;IACjB,8CAA8C;IAC9C,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,mDAAmD;IACnD,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,qDAAqD;IACrD,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,qDAAqD;IACrD,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,oDAAoD;IACpD,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,oDAAoD;IACpD,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,mDAAmD;IACnD,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,mDAAmD;IACnD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,mDAAmD;IACnD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,8CAA8C;IAC9C,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,kDAAkD;IAClD,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,gDAAgD;IAChD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,wDAAwD;IACxD,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,sDAAsD;IACtD,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,mDAAmD;IACnD,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,sDAAsD;IACtD,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB;;;OAGG;gBACS,OAAO,GAAE,oBAAyB;IA4B9C;;;;;;;;OAQG;IACH,YAAY,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM;CA8BpD"}
|
package/script/browserconfig.js
CHANGED
|
@@ -1,145 +1,189 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.BrowserConfig = exports.OperatingSystem = exports.ProxyPool = void 0;
|
|
4
|
+
/** Proxy pool to use for the Cloud Browser session. */
|
|
4
5
|
var ProxyPool;
|
|
5
6
|
(function (ProxyPool) {
|
|
7
|
+
/** Datacenter proxies — fast and cheap; best for non-protected targets. */
|
|
6
8
|
ProxyPool["DATACENTER"] = "datacenter";
|
|
9
|
+
/** Residential proxies — real ISP IPs; required by most anti-bot protections. */
|
|
7
10
|
ProxyPool["RESIDENTIAL"] = "residential";
|
|
8
11
|
})(ProxyPool || (exports.ProxyPool = ProxyPool = {}));
|
|
12
|
+
/** Operating system to emulate for the Cloud Browser session fingerprint. */
|
|
9
13
|
var OperatingSystem;
|
|
10
14
|
(function (OperatingSystem) {
|
|
15
|
+
/** Emulate a Linux browser fingerprint. */
|
|
11
16
|
OperatingSystem["LINUX"] = "linux";
|
|
17
|
+
/** Emulate a Windows browser fingerprint. */
|
|
12
18
|
OperatingSystem["WINDOWS"] = "windows";
|
|
19
|
+
/** Emulate a macOS browser fingerprint. */
|
|
13
20
|
OperatingSystem["MACOS"] = "macos";
|
|
14
21
|
})(OperatingSystem || (exports.OperatingSystem = OperatingSystem = {}));
|
|
22
|
+
/**
|
|
23
|
+
* Configuration for a Scrapfly Cloud Browser session. Builds the
|
|
24
|
+
* WebSocket URL that clients such as Puppeteer or Playwright can
|
|
25
|
+
* connect to via CDP.
|
|
26
|
+
*/
|
|
15
27
|
class BrowserConfig {
|
|
28
|
+
/**
|
|
29
|
+
* @param options Session options. See {@link BrowserConfigOptions}.
|
|
30
|
+
* @throws `Error` if `timeout` exceeds the upper bound of 1800 seconds.
|
|
31
|
+
*/
|
|
16
32
|
constructor(options = {}) {
|
|
33
|
+
/** See {@link BrowserConfigOptions.proxy_pool}. */
|
|
17
34
|
Object.defineProperty(this, "proxy_pool", {
|
|
18
35
|
enumerable: true,
|
|
19
36
|
configurable: true,
|
|
20
37
|
writable: true,
|
|
21
38
|
value: void 0
|
|
22
39
|
});
|
|
40
|
+
/** See {@link BrowserConfigOptions.os}. */
|
|
23
41
|
Object.defineProperty(this, "os", {
|
|
24
42
|
enumerable: true,
|
|
25
43
|
configurable: true,
|
|
26
44
|
writable: true,
|
|
27
45
|
value: void 0
|
|
28
46
|
});
|
|
47
|
+
/** See {@link BrowserConfigOptions.session}. */
|
|
29
48
|
Object.defineProperty(this, "session", {
|
|
30
49
|
enumerable: true,
|
|
31
50
|
configurable: true,
|
|
32
51
|
writable: true,
|
|
33
52
|
value: void 0
|
|
34
53
|
});
|
|
54
|
+
/** See {@link BrowserConfigOptions.country}. */
|
|
35
55
|
Object.defineProperty(this, "country", {
|
|
36
56
|
enumerable: true,
|
|
37
57
|
configurable: true,
|
|
38
58
|
writable: true,
|
|
39
59
|
value: void 0
|
|
40
60
|
});
|
|
61
|
+
/** See {@link BrowserConfigOptions.auto_close}. */
|
|
41
62
|
Object.defineProperty(this, "auto_close", {
|
|
42
63
|
enumerable: true,
|
|
43
64
|
configurable: true,
|
|
44
65
|
writable: true,
|
|
45
66
|
value: void 0
|
|
46
67
|
});
|
|
68
|
+
/** See {@link BrowserConfigOptions.timeout}. */
|
|
47
69
|
Object.defineProperty(this, "timeout", {
|
|
48
70
|
enumerable: true,
|
|
49
71
|
configurable: true,
|
|
50
72
|
writable: true,
|
|
51
73
|
value: void 0
|
|
52
74
|
});
|
|
75
|
+
/** See {@link BrowserConfigOptions.debug}. */
|
|
53
76
|
Object.defineProperty(this, "debug", {
|
|
54
77
|
enumerable: true,
|
|
55
78
|
configurable: true,
|
|
56
79
|
writable: true,
|
|
57
80
|
value: void 0
|
|
58
81
|
});
|
|
82
|
+
/** See {@link BrowserConfigOptions.extensions}. */
|
|
59
83
|
Object.defineProperty(this, "extensions", {
|
|
60
84
|
enumerable: true,
|
|
61
85
|
configurable: true,
|
|
62
86
|
writable: true,
|
|
63
87
|
value: void 0
|
|
64
88
|
});
|
|
89
|
+
/** See {@link BrowserConfigOptions.block_images}. */
|
|
65
90
|
Object.defineProperty(this, "block_images", {
|
|
66
91
|
enumerable: true,
|
|
67
92
|
configurable: true,
|
|
68
93
|
writable: true,
|
|
69
94
|
value: void 0
|
|
70
95
|
});
|
|
96
|
+
/** See {@link BrowserConfigOptions.block_styles}. */
|
|
71
97
|
Object.defineProperty(this, "block_styles", {
|
|
72
98
|
enumerable: true,
|
|
73
99
|
configurable: true,
|
|
74
100
|
writable: true,
|
|
75
101
|
value: void 0
|
|
76
102
|
});
|
|
103
|
+
/** See {@link BrowserConfigOptions.block_fonts}. */
|
|
77
104
|
Object.defineProperty(this, "block_fonts", {
|
|
78
105
|
enumerable: true,
|
|
79
106
|
configurable: true,
|
|
80
107
|
writable: true,
|
|
81
108
|
value: void 0
|
|
82
109
|
});
|
|
110
|
+
/** See {@link BrowserConfigOptions.block_media}. */
|
|
83
111
|
Object.defineProperty(this, "block_media", {
|
|
84
112
|
enumerable: true,
|
|
85
113
|
configurable: true,
|
|
86
114
|
writable: true,
|
|
87
115
|
value: void 0
|
|
88
116
|
});
|
|
117
|
+
/** See {@link BrowserConfigOptions.screenshot}. */
|
|
89
118
|
Object.defineProperty(this, "screenshot", {
|
|
90
119
|
enumerable: true,
|
|
91
120
|
configurable: true,
|
|
92
121
|
writable: true,
|
|
93
122
|
value: void 0
|
|
94
123
|
});
|
|
124
|
+
/** See {@link BrowserConfigOptions.resolution}. */
|
|
95
125
|
Object.defineProperty(this, "resolution", {
|
|
96
126
|
enumerable: true,
|
|
97
127
|
configurable: true,
|
|
98
128
|
writable: true,
|
|
99
129
|
value: void 0
|
|
100
130
|
});
|
|
131
|
+
/** See {@link BrowserConfigOptions.target_url}. */
|
|
101
132
|
Object.defineProperty(this, "target_url", {
|
|
102
133
|
enumerable: true,
|
|
103
134
|
configurable: true,
|
|
104
135
|
writable: true,
|
|
105
136
|
value: void 0
|
|
106
137
|
});
|
|
138
|
+
/** See {@link BrowserConfigOptions.cache}. */
|
|
107
139
|
Object.defineProperty(this, "cache", {
|
|
108
140
|
enumerable: true,
|
|
109
141
|
configurable: true,
|
|
110
142
|
writable: true,
|
|
111
143
|
value: void 0
|
|
112
144
|
});
|
|
145
|
+
/** See {@link BrowserConfigOptions.blacklist}. */
|
|
113
146
|
Object.defineProperty(this, "blacklist", {
|
|
114
147
|
enumerable: true,
|
|
115
148
|
configurable: true,
|
|
116
149
|
writable: true,
|
|
117
150
|
value: void 0
|
|
118
151
|
});
|
|
152
|
+
/** See {@link BrowserConfigOptions.unblock}. */
|
|
119
153
|
Object.defineProperty(this, "unblock", {
|
|
120
154
|
enumerable: true,
|
|
121
155
|
configurable: true,
|
|
122
156
|
writable: true,
|
|
123
157
|
value: void 0
|
|
124
158
|
});
|
|
159
|
+
/** See {@link BrowserConfigOptions.unblock_timeout}. */
|
|
125
160
|
Object.defineProperty(this, "unblock_timeout", {
|
|
126
161
|
enumerable: true,
|
|
127
162
|
configurable: true,
|
|
128
163
|
writable: true,
|
|
129
164
|
value: void 0
|
|
130
165
|
});
|
|
166
|
+
/** See {@link BrowserConfigOptions.browser_brand}. */
|
|
131
167
|
Object.defineProperty(this, "browser_brand", {
|
|
132
168
|
enumerable: true,
|
|
133
169
|
configurable: true,
|
|
134
170
|
writable: true,
|
|
135
171
|
value: void 0
|
|
136
172
|
});
|
|
173
|
+
/** See {@link BrowserConfigOptions.enable_mcp}. */
|
|
137
174
|
Object.defineProperty(this, "enable_mcp", {
|
|
138
175
|
enumerable: true,
|
|
139
176
|
configurable: true,
|
|
140
177
|
writable: true,
|
|
141
178
|
value: void 0
|
|
142
179
|
});
|
|
180
|
+
/** See {@link BrowserConfigOptions.solve_captcha}. */
|
|
181
|
+
Object.defineProperty(this, "solve_captcha", {
|
|
182
|
+
enumerable: true,
|
|
183
|
+
configurable: true,
|
|
184
|
+
writable: true,
|
|
185
|
+
value: void 0
|
|
186
|
+
});
|
|
143
187
|
if (options.timeout !== undefined && options.timeout > 1800) {
|
|
144
188
|
throw new Error('timeout cannot exceed 1800 seconds (30 minutes)');
|
|
145
189
|
}
|
|
@@ -164,9 +208,16 @@ class BrowserConfig {
|
|
|
164
208
|
this.unblock_timeout = options.unblock_timeout;
|
|
165
209
|
this.browser_brand = options.browser_brand;
|
|
166
210
|
this.enable_mcp = options.enable_mcp;
|
|
211
|
+
this.solve_captcha = options.solve_captcha;
|
|
167
212
|
}
|
|
168
213
|
/**
|
|
169
|
-
*
|
|
214
|
+
* Build the WebSocket URL clients use to connect to the Cloud Browser
|
|
215
|
+
* session (compatible with Puppeteer `browserWSEndpoint` and the
|
|
216
|
+
* Playwright `connectOverCDP` API).
|
|
217
|
+
*
|
|
218
|
+
* @param apiKey Scrapfly API key.
|
|
219
|
+
* @param host Optional override for the Cloud Browser host (defaults to `wss://browser.scrapfly.io`).
|
|
220
|
+
* @returns A fully-qualified `wss://…` URL with all options encoded as query parameters.
|
|
170
221
|
*/
|
|
171
222
|
websocketUrl(apiKey, host) {
|
|
172
223
|
const params = new URLSearchParams();
|
|
@@ -213,6 +264,8 @@ class BrowserConfig {
|
|
|
213
264
|
params.set('browser_brand', this.browser_brand);
|
|
214
265
|
if (this.enable_mcp !== undefined)
|
|
215
266
|
params.set('enable_mcp', String(this.enable_mcp));
|
|
267
|
+
if (this.solve_captcha !== undefined)
|
|
268
|
+
params.set('solve_captcha', String(this.solve_captcha));
|
|
216
269
|
const baseHost = host || 'wss://browser.scrapfly.io';
|
|
217
270
|
return `${baseHost}?${params.toString()}`;
|
|
218
271
|
}
|
package/script/client.d.ts
CHANGED
|
@@ -9,15 +9,35 @@ import type { Rec } from './types.js';
|
|
|
9
9
|
import type { CrawlerConfig, CrawlerContentFormat } from './crawlerconfig.js';
|
|
10
10
|
import { CrawlerArtifact, type CrawlerArtifactType, CrawlerContents, CrawlerStatus, CrawlerUrls } from './crawlerresult.js';
|
|
11
11
|
import { type CloudBrowserMonitoringOptions, type MonitoringMetricsOptions, type MonitoringTargetMetricsOptions } from './monitoringconfig.js';
|
|
12
|
+
import { type CreateScheduleRequest, type ListSchedulesOptions, type Schedule, type UpdateScheduleRequest } from './schedule.js';
|
|
13
|
+
/**
|
|
14
|
+
* Main entry point for the Scrapfly SDK.
|
|
15
|
+
*
|
|
16
|
+
* A single `ScrapflyClient` can be used to call every Scrapfly API
|
|
17
|
+
* (scrape, screenshot, extraction, crawler, monitoring, cloud browser).
|
|
18
|
+
* It is safe to share one instance across concurrent calls.
|
|
19
|
+
*/
|
|
12
20
|
export declare class ScrapflyClient {
|
|
21
|
+
/** Base URL of the Scrapfly REST API. */
|
|
13
22
|
HOST: string;
|
|
23
|
+
/** Default Cloud Browser WebSocket host. */
|
|
14
24
|
CLOUD_BROWSER_HOST: string;
|
|
25
|
+
/** Default Cloud Browser REST host (derived from the WS host). */
|
|
15
26
|
CLOUD_BROWSER_API_HOST: string;
|
|
16
27
|
private key;
|
|
17
28
|
private ua;
|
|
18
29
|
private cloudBrowserHost;
|
|
19
30
|
private cloudBrowserApiHost;
|
|
31
|
+
/** `fetch` implementation used by the client. Override for custom retries/tracing. */
|
|
20
32
|
fetch: typeof fetchRetry;
|
|
33
|
+
/**
|
|
34
|
+
* Create a Scrapfly client.
|
|
35
|
+
*
|
|
36
|
+
* @param options.key Scrapfly API key.
|
|
37
|
+
* @param options.host Optional override for the REST API host.
|
|
38
|
+
* @param options.cloudBrowserHost Optional override for the Cloud Browser WS host.
|
|
39
|
+
* @throws {@link errors.BadApiKeyError} if `options.key` is not a non-empty string.
|
|
40
|
+
*/
|
|
21
41
|
constructor(options: {
|
|
22
42
|
key: string;
|
|
23
43
|
host?: string;
|
|
@@ -48,19 +68,33 @@ export declare class ScrapflyClient {
|
|
|
48
68
|
* https://scrapfly.io/docs/scrape-api/classify for the full contract.
|
|
49
69
|
*/
|
|
50
70
|
classify(options: ClassifyOptions): Promise<ClassifyResult>;
|
|
71
|
+
/** Dispatch an HTTP GET against a Monitoring API path with the given query params, parsing errors. */
|
|
51
72
|
private monitoringRequest;
|
|
73
|
+
/** Build the query string for a request-based Monitoring API metrics endpoint. */
|
|
52
74
|
private buildMetricsParams;
|
|
75
|
+
/** Build the query string for a per-target Monitoring API endpoint. */
|
|
53
76
|
private buildTargetParams;
|
|
77
|
+
/** Fetch Web Scraping API monitoring metrics (aggregate). */
|
|
54
78
|
getMonitoringMetrics(options?: MonitoringMetricsOptions): Promise<Rec<any>>;
|
|
79
|
+
/** Fetch Web Scraping API monitoring metrics for a single target domain. */
|
|
55
80
|
getMonitoringTargetMetrics(options: MonitoringTargetMetricsOptions): Promise<Rec<any>>;
|
|
81
|
+
/** Fetch Screenshot API monitoring metrics (aggregate). */
|
|
56
82
|
getScreenshotMonitoringMetrics(options?: MonitoringMetricsOptions): Promise<Rec<any>>;
|
|
83
|
+
/** Fetch Screenshot API monitoring metrics for a single target domain. */
|
|
57
84
|
getScreenshotMonitoringTargetMetrics(options: MonitoringTargetMetricsOptions): Promise<Rec<any>>;
|
|
85
|
+
/** Fetch Extraction API monitoring metrics (aggregate). */
|
|
58
86
|
getExtractionMonitoringMetrics(options?: MonitoringMetricsOptions): Promise<Rec<any>>;
|
|
87
|
+
/** Fetch Extraction API monitoring metrics for a single target domain. */
|
|
59
88
|
getExtractionMonitoringTargetMetrics(options: MonitoringTargetMetricsOptions): Promise<Rec<any>>;
|
|
89
|
+
/** Fetch Crawler API monitoring metrics (aggregate). */
|
|
60
90
|
getCrawlerMonitoringMetrics(options?: MonitoringMetricsOptions): Promise<Rec<any>>;
|
|
91
|
+
/** Fetch Crawler API monitoring metrics for a single target domain. */
|
|
61
92
|
getCrawlerMonitoringTargetMetrics(options: MonitoringTargetMetricsOptions): Promise<Rec<any>>;
|
|
93
|
+
/** Fetch Cloud Browser monitoring metrics (session-based aggregate). */
|
|
62
94
|
getBrowserMonitoringMetrics(options?: CloudBrowserMonitoringOptions): Promise<Rec<any>>;
|
|
95
|
+
/** Fetch Cloud Browser monitoring timeseries (per-minute session usage). */
|
|
63
96
|
getBrowserMonitoringTimeseries(options?: CloudBrowserMonitoringOptions): Promise<Rec<any>>;
|
|
97
|
+
/** Build the query string for the session-based Cloud Browser Monitoring endpoints. */
|
|
64
98
|
private buildBrowserParams;
|
|
65
99
|
/**
|
|
66
100
|
* Issue a single scrape command from a given scrape configuration
|
|
@@ -241,6 +275,7 @@ export declare class ScrapflyClient {
|
|
|
241
275
|
body?: string;
|
|
242
276
|
method?: string;
|
|
243
277
|
enable_mcp?: boolean;
|
|
278
|
+
solve_captcha?: boolean;
|
|
244
279
|
}): Promise<{
|
|
245
280
|
ws_url: string;
|
|
246
281
|
session_id: string;
|
|
@@ -307,5 +342,35 @@ export declare class ScrapflyClient {
|
|
|
307
342
|
sessions: any[];
|
|
308
343
|
total: number;
|
|
309
344
|
}>;
|
|
345
|
+
/** Create a Web Scraping API schedule. `scrape_config` is the same shape
|
|
346
|
+
* accepted by `/scrape` (e.g. `{ url, render_js, asp, ... }`). */
|
|
347
|
+
createScrapeSchedule(scrapeConfig: Record<string, unknown>, request: CreateScheduleRequest): Promise<Schedule>;
|
|
348
|
+
/** Create a Screenshot API schedule. */
|
|
349
|
+
createScreenshotSchedule(screenshotConfig: Record<string, unknown>, request: CreateScheduleRequest): Promise<Schedule>;
|
|
350
|
+
/** Create a Crawler API schedule. */
|
|
351
|
+
createCrawlerSchedule(crawlerConfig: Record<string, unknown>, request: CreateScheduleRequest): Promise<Schedule>;
|
|
352
|
+
/** Return a schedule by id. Works across all kinds. */
|
|
353
|
+
getSchedule(id: string): Promise<Schedule>;
|
|
354
|
+
/** List every schedule on the account, optionally filtered by kind/status. */
|
|
355
|
+
listSchedules(opts?: ListSchedulesOptions): Promise<Schedule[]>;
|
|
356
|
+
listScrapeSchedules(opts?: {
|
|
357
|
+
status?: string;
|
|
358
|
+
}): Promise<Schedule[]>;
|
|
359
|
+
listScreenshotSchedules(opts?: {
|
|
360
|
+
status?: string;
|
|
361
|
+
}): Promise<Schedule[]>;
|
|
362
|
+
listCrawlerSchedules(opts?: {
|
|
363
|
+
status?: string;
|
|
364
|
+
}): Promise<Schedule[]>;
|
|
365
|
+
/** Patch an active schedule. Only fields set in `request` change. */
|
|
366
|
+
updateSchedule(id: string, request: UpdateScheduleRequest): Promise<Schedule>;
|
|
367
|
+
/** Cancel a schedule. Cancellation is terminal (returns no body). */
|
|
368
|
+
cancelSchedule(id: string): Promise<void>;
|
|
369
|
+
pauseSchedule(id: string): Promise<Schedule>;
|
|
370
|
+
resumeSchedule(id: string): Promise<Schedule>;
|
|
371
|
+
/** Fire a schedule immediately, regardless of next_scheduled_date. */
|
|
372
|
+
executeSchedule(id: string): Promise<Schedule>;
|
|
373
|
+
private buildCreateBody;
|
|
374
|
+
private scheduleRequest;
|
|
310
375
|
}
|
|
311
376
|
//# sourceMappingURL=client.d.ts.map
|
package/script/client.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AACtC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,eAAe,EAAE,KAAK,cAAc,EAAE,gBAAgB,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAE5I,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC9E,OAAO,EAAE,eAAe,EAAE,KAAK,mBAAmB,EAAE,eAAe,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAC5H,OAAO,EAEL,KAAK,6BAA6B,EAClC,KAAK,wBAAwB,EAC7B,KAAK,8BAA8B,EACpC,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../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