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
package/esm/batch.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"batch.d.ts","sourceRoot":"","sources":["../src/batch.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;
|
|
1
|
+
{"version":3,"file":"batch.d.ts","sourceRoot":"","sources":["../src/batch.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAgDH,MAAM,WAAW,SAAS;IACxB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC,IAAI,EAAE,UAAU,CAAC;CAClB;AAED;;;;;;GAMG;AACH,wBAAuB,cAAc,CAAC,QAAQ,EAAE,QAAQ,GAAG,cAAc,CAAC,SAAS,CAAC,CA4HnF;AAoBD;;;GAGG;AACH,wBAAgB,cAAc,CAAC,CAAC,GAAG,OAAO,EAAE,IAAI,EAAE,SAAS,GAAG,CAAC,CAS9D;AAOD;;;;;;;;;;GAUG;AACH,wBAAgB,8BAA8B,CAAC,IAAI,EAAE,SAAS,GAAG,QAAQ,CAiCxE"}
|
package/esm/batch.js
CHANGED
|
@@ -25,6 +25,12 @@ function indexOf(buf, needle, start = 0) {
|
|
|
25
25
|
}
|
|
26
26
|
return -1;
|
|
27
27
|
}
|
|
28
|
+
// concat sidesteps the TS 5.7+ generic-Uint8Array vs dnt-Node legacy
|
|
29
|
+
// Uint8Array mismatch by accepting `any` and returning a freshly
|
|
30
|
+
// allocated buffer. The fresh allocation guarantees the result is a
|
|
31
|
+
// `Uint8Array<ArrayBuffer>` at runtime under TS 5.7+ and a plain
|
|
32
|
+
// non-generic `Uint8Array` under dnt's Node target.
|
|
33
|
+
// deno-lint-ignore no-explicit-any
|
|
28
34
|
function concat(a, b) {
|
|
29
35
|
const out = new Uint8Array(a.length + b.length);
|
|
30
36
|
out.set(a, 0);
|
package/esm/browserconfig.d.ts
CHANGED
|
@@ -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,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,OAAO,CAAC;IA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mD;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/esm/browserconfig.js
CHANGED
|
@@ -1,142 +1,186 @@
|
|
|
1
|
+
/** Proxy pool to use for the Cloud Browser session. */
|
|
1
2
|
export var ProxyPool;
|
|
2
3
|
(function (ProxyPool) {
|
|
4
|
+
/** Datacenter proxies — fast and cheap; best for non-protected targets. */
|
|
3
5
|
ProxyPool["DATACENTER"] = "datacenter";
|
|
6
|
+
/** Residential proxies — real ISP IPs; required by most anti-bot protections. */
|
|
4
7
|
ProxyPool["RESIDENTIAL"] = "residential";
|
|
5
8
|
})(ProxyPool || (ProxyPool = {}));
|
|
9
|
+
/** Operating system to emulate for the Cloud Browser session fingerprint. */
|
|
6
10
|
export var OperatingSystem;
|
|
7
11
|
(function (OperatingSystem) {
|
|
12
|
+
/** Emulate a Linux browser fingerprint. */
|
|
8
13
|
OperatingSystem["LINUX"] = "linux";
|
|
14
|
+
/** Emulate a Windows browser fingerprint. */
|
|
9
15
|
OperatingSystem["WINDOWS"] = "windows";
|
|
16
|
+
/** Emulate a macOS browser fingerprint. */
|
|
10
17
|
OperatingSystem["MACOS"] = "macos";
|
|
11
18
|
})(OperatingSystem || (OperatingSystem = {}));
|
|
19
|
+
/**
|
|
20
|
+
* Configuration for a Scrapfly Cloud Browser session. Builds the
|
|
21
|
+
* WebSocket URL that clients such as Puppeteer or Playwright can
|
|
22
|
+
* connect to via CDP.
|
|
23
|
+
*/
|
|
12
24
|
export class BrowserConfig {
|
|
25
|
+
/**
|
|
26
|
+
* @param options Session options. See {@link BrowserConfigOptions}.
|
|
27
|
+
* @throws `Error` if `timeout` exceeds the upper bound of 1800 seconds.
|
|
28
|
+
*/
|
|
13
29
|
constructor(options = {}) {
|
|
30
|
+
/** See {@link BrowserConfigOptions.proxy_pool}. */
|
|
14
31
|
Object.defineProperty(this, "proxy_pool", {
|
|
15
32
|
enumerable: true,
|
|
16
33
|
configurable: true,
|
|
17
34
|
writable: true,
|
|
18
35
|
value: void 0
|
|
19
36
|
});
|
|
37
|
+
/** See {@link BrowserConfigOptions.os}. */
|
|
20
38
|
Object.defineProperty(this, "os", {
|
|
21
39
|
enumerable: true,
|
|
22
40
|
configurable: true,
|
|
23
41
|
writable: true,
|
|
24
42
|
value: void 0
|
|
25
43
|
});
|
|
44
|
+
/** See {@link BrowserConfigOptions.session}. */
|
|
26
45
|
Object.defineProperty(this, "session", {
|
|
27
46
|
enumerable: true,
|
|
28
47
|
configurable: true,
|
|
29
48
|
writable: true,
|
|
30
49
|
value: void 0
|
|
31
50
|
});
|
|
51
|
+
/** See {@link BrowserConfigOptions.country}. */
|
|
32
52
|
Object.defineProperty(this, "country", {
|
|
33
53
|
enumerable: true,
|
|
34
54
|
configurable: true,
|
|
35
55
|
writable: true,
|
|
36
56
|
value: void 0
|
|
37
57
|
});
|
|
58
|
+
/** See {@link BrowserConfigOptions.auto_close}. */
|
|
38
59
|
Object.defineProperty(this, "auto_close", {
|
|
39
60
|
enumerable: true,
|
|
40
61
|
configurable: true,
|
|
41
62
|
writable: true,
|
|
42
63
|
value: void 0
|
|
43
64
|
});
|
|
65
|
+
/** See {@link BrowserConfigOptions.timeout}. */
|
|
44
66
|
Object.defineProperty(this, "timeout", {
|
|
45
67
|
enumerable: true,
|
|
46
68
|
configurable: true,
|
|
47
69
|
writable: true,
|
|
48
70
|
value: void 0
|
|
49
71
|
});
|
|
72
|
+
/** See {@link BrowserConfigOptions.debug}. */
|
|
50
73
|
Object.defineProperty(this, "debug", {
|
|
51
74
|
enumerable: true,
|
|
52
75
|
configurable: true,
|
|
53
76
|
writable: true,
|
|
54
77
|
value: void 0
|
|
55
78
|
});
|
|
79
|
+
/** See {@link BrowserConfigOptions.extensions}. */
|
|
56
80
|
Object.defineProperty(this, "extensions", {
|
|
57
81
|
enumerable: true,
|
|
58
82
|
configurable: true,
|
|
59
83
|
writable: true,
|
|
60
84
|
value: void 0
|
|
61
85
|
});
|
|
86
|
+
/** See {@link BrowserConfigOptions.block_images}. */
|
|
62
87
|
Object.defineProperty(this, "block_images", {
|
|
63
88
|
enumerable: true,
|
|
64
89
|
configurable: true,
|
|
65
90
|
writable: true,
|
|
66
91
|
value: void 0
|
|
67
92
|
});
|
|
93
|
+
/** See {@link BrowserConfigOptions.block_styles}. */
|
|
68
94
|
Object.defineProperty(this, "block_styles", {
|
|
69
95
|
enumerable: true,
|
|
70
96
|
configurable: true,
|
|
71
97
|
writable: true,
|
|
72
98
|
value: void 0
|
|
73
99
|
});
|
|
100
|
+
/** See {@link BrowserConfigOptions.block_fonts}. */
|
|
74
101
|
Object.defineProperty(this, "block_fonts", {
|
|
75
102
|
enumerable: true,
|
|
76
103
|
configurable: true,
|
|
77
104
|
writable: true,
|
|
78
105
|
value: void 0
|
|
79
106
|
});
|
|
107
|
+
/** See {@link BrowserConfigOptions.block_media}. */
|
|
80
108
|
Object.defineProperty(this, "block_media", {
|
|
81
109
|
enumerable: true,
|
|
82
110
|
configurable: true,
|
|
83
111
|
writable: true,
|
|
84
112
|
value: void 0
|
|
85
113
|
});
|
|
114
|
+
/** See {@link BrowserConfigOptions.screenshot}. */
|
|
86
115
|
Object.defineProperty(this, "screenshot", {
|
|
87
116
|
enumerable: true,
|
|
88
117
|
configurable: true,
|
|
89
118
|
writable: true,
|
|
90
119
|
value: void 0
|
|
91
120
|
});
|
|
121
|
+
/** See {@link BrowserConfigOptions.resolution}. */
|
|
92
122
|
Object.defineProperty(this, "resolution", {
|
|
93
123
|
enumerable: true,
|
|
94
124
|
configurable: true,
|
|
95
125
|
writable: true,
|
|
96
126
|
value: void 0
|
|
97
127
|
});
|
|
128
|
+
/** See {@link BrowserConfigOptions.target_url}. */
|
|
98
129
|
Object.defineProperty(this, "target_url", {
|
|
99
130
|
enumerable: true,
|
|
100
131
|
configurable: true,
|
|
101
132
|
writable: true,
|
|
102
133
|
value: void 0
|
|
103
134
|
});
|
|
135
|
+
/** See {@link BrowserConfigOptions.cache}. */
|
|
104
136
|
Object.defineProperty(this, "cache", {
|
|
105
137
|
enumerable: true,
|
|
106
138
|
configurable: true,
|
|
107
139
|
writable: true,
|
|
108
140
|
value: void 0
|
|
109
141
|
});
|
|
142
|
+
/** See {@link BrowserConfigOptions.blacklist}. */
|
|
110
143
|
Object.defineProperty(this, "blacklist", {
|
|
111
144
|
enumerable: true,
|
|
112
145
|
configurable: true,
|
|
113
146
|
writable: true,
|
|
114
147
|
value: void 0
|
|
115
148
|
});
|
|
149
|
+
/** See {@link BrowserConfigOptions.unblock}. */
|
|
116
150
|
Object.defineProperty(this, "unblock", {
|
|
117
151
|
enumerable: true,
|
|
118
152
|
configurable: true,
|
|
119
153
|
writable: true,
|
|
120
154
|
value: void 0
|
|
121
155
|
});
|
|
156
|
+
/** See {@link BrowserConfigOptions.unblock_timeout}. */
|
|
122
157
|
Object.defineProperty(this, "unblock_timeout", {
|
|
123
158
|
enumerable: true,
|
|
124
159
|
configurable: true,
|
|
125
160
|
writable: true,
|
|
126
161
|
value: void 0
|
|
127
162
|
});
|
|
163
|
+
/** See {@link BrowserConfigOptions.browser_brand}. */
|
|
128
164
|
Object.defineProperty(this, "browser_brand", {
|
|
129
165
|
enumerable: true,
|
|
130
166
|
configurable: true,
|
|
131
167
|
writable: true,
|
|
132
168
|
value: void 0
|
|
133
169
|
});
|
|
170
|
+
/** See {@link BrowserConfigOptions.enable_mcp}. */
|
|
134
171
|
Object.defineProperty(this, "enable_mcp", {
|
|
135
172
|
enumerable: true,
|
|
136
173
|
configurable: true,
|
|
137
174
|
writable: true,
|
|
138
175
|
value: void 0
|
|
139
176
|
});
|
|
177
|
+
/** See {@link BrowserConfigOptions.solve_captcha}. */
|
|
178
|
+
Object.defineProperty(this, "solve_captcha", {
|
|
179
|
+
enumerable: true,
|
|
180
|
+
configurable: true,
|
|
181
|
+
writable: true,
|
|
182
|
+
value: void 0
|
|
183
|
+
});
|
|
140
184
|
if (options.timeout !== undefined && options.timeout > 1800) {
|
|
141
185
|
throw new Error('timeout cannot exceed 1800 seconds (30 minutes)');
|
|
142
186
|
}
|
|
@@ -161,9 +205,16 @@ export class BrowserConfig {
|
|
|
161
205
|
this.unblock_timeout = options.unblock_timeout;
|
|
162
206
|
this.browser_brand = options.browser_brand;
|
|
163
207
|
this.enable_mcp = options.enable_mcp;
|
|
208
|
+
this.solve_captcha = options.solve_captcha;
|
|
164
209
|
}
|
|
165
210
|
/**
|
|
166
|
-
*
|
|
211
|
+
* Build the WebSocket URL clients use to connect to the Cloud Browser
|
|
212
|
+
* session (compatible with Puppeteer `browserWSEndpoint` and the
|
|
213
|
+
* Playwright `connectOverCDP` API).
|
|
214
|
+
*
|
|
215
|
+
* @param apiKey Scrapfly API key.
|
|
216
|
+
* @param host Optional override for the Cloud Browser host (defaults to `wss://browser.scrapfly.io`).
|
|
217
|
+
* @returns A fully-qualified `wss://…` URL with all options encoded as query parameters.
|
|
167
218
|
*/
|
|
168
219
|
websocketUrl(apiKey, host) {
|
|
169
220
|
const params = new URLSearchParams();
|
|
@@ -210,6 +261,8 @@ export class BrowserConfig {
|
|
|
210
261
|
params.set('browser_brand', this.browser_brand);
|
|
211
262
|
if (this.enable_mcp !== undefined)
|
|
212
263
|
params.set('enable_mcp', String(this.enable_mcp));
|
|
264
|
+
if (this.solve_captcha !== undefined)
|
|
265
|
+
params.set('solve_captcha', String(this.solve_captcha));
|
|
213
266
|
const baseHost = host || 'wss://browser.scrapfly.io';
|
|
214
267
|
return `${baseHost}?${params.toString()}`;
|
|
215
268
|
}
|
package/esm/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/esm/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":["../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,MA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