scrapfly-sdk 0.7.3 → 0.9.0
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/browserconfig.d.ts +59 -0
- package/esm/browserconfig.d.ts.map +1 -0
- package/esm/browserconfig.js +207 -0
- package/esm/client.d.ts +193 -1
- package/esm/client.d.ts.map +1 -1
- package/esm/client.js +786 -5
- package/esm/crawl.d.ts +118 -0
- package/esm/crawl.d.ts.map +1 -0
- package/esm/crawl.js +230 -0
- package/esm/crawlerconfig.d.ts +119 -0
- package/esm/crawlerconfig.d.ts.map +1 -0
- package/esm/crawlerconfig.js +398 -0
- package/esm/crawlerresult.d.ts +253 -0
- package/esm/crawlerresult.d.ts.map +1 -0
- package/esm/crawlerresult.js +327 -0
- package/esm/errors.d.ts +4 -0
- package/esm/errors.d.ts.map +1 -1
- package/esm/errors.js +6 -0
- package/esm/extractionconfig.d.ts +2 -0
- package/esm/extractionconfig.d.ts.map +1 -1
- package/esm/extractionconfig.js +10 -0
- package/esm/main.d.ts +8 -1
- package/esm/main.d.ts.map +1 -1
- package/esm/main.js +6 -1
- package/esm/polyfill.d.ts +2 -0
- package/esm/polyfill.d.ts.map +1 -1
- package/esm/polyfill.js +12 -0
- package/esm/scrapeconfig.d.ts +27 -0
- package/esm/scrapeconfig.d.ts.map +1 -1
- package/esm/scrapeconfig.js +44 -1
- package/esm/screenshotconfig.d.ts +2 -2
- package/esm/screenshotconfig.d.ts.map +1 -1
- package/esm/utils.d.ts.map +1 -1
- package/esm/utils.js +16 -2
- package/package.json +1 -1
- package/script/browserconfig.d.ts +59 -0
- package/script/browserconfig.d.ts.map +1 -0
- package/script/browserconfig.js +211 -0
- package/script/client.d.ts +193 -1
- package/script/client.d.ts.map +1 -1
- package/script/client.js +785 -4
- package/script/crawl.d.ts +118 -0
- package/script/crawl.d.ts.map +1 -0
- package/script/crawl.js +257 -0
- package/script/crawlerconfig.d.ts +119 -0
- package/script/crawlerconfig.d.ts.map +1 -0
- package/script/crawlerconfig.js +402 -0
- package/script/crawlerresult.d.ts +253 -0
- package/script/crawlerresult.d.ts.map +1 -0
- package/script/crawlerresult.js +335 -0
- package/script/errors.d.ts +4 -0
- package/script/errors.d.ts.map +1 -1
- package/script/errors.js +9 -1
- package/script/extractionconfig.d.ts +2 -0
- package/script/extractionconfig.d.ts.map +1 -1
- package/script/extractionconfig.js +10 -0
- package/script/main.d.ts +8 -1
- package/script/main.d.ts.map +1 -1
- package/script/main.js +17 -1
- package/script/polyfill.d.ts +2 -0
- package/script/polyfill.d.ts.map +1 -1
- package/script/polyfill.js +14 -1
- package/script/scrapeconfig.d.ts +27 -0
- package/script/scrapeconfig.d.ts.map +1 -1
- package/script/scrapeconfig.js +44 -1
- package/script/screenshotconfig.d.ts +2 -2
- package/script/screenshotconfig.d.ts.map +1 -1
- package/script/utils.d.ts.map +1 -1
- package/script/utils.js +16 -2
|
@@ -59,7 +59,7 @@ type ScreenshotConfigOptions = {
|
|
|
59
59
|
cache?: boolean;
|
|
60
60
|
cache_ttl?: number;
|
|
61
61
|
cache_clear?: boolean;
|
|
62
|
-
vision_deficiency?: 'deuteranopia' | 'protanopia' | 'tritanopia' | 'achromatopsia' | '
|
|
62
|
+
vision_deficiency?: 'deuteranopia' | 'protanopia' | 'tritanopia' | 'achromatopsia' | 'blurredVision' | 'reducedContrast' | VisionDeficiency;
|
|
63
63
|
webhook?: string;
|
|
64
64
|
};
|
|
65
65
|
export declare class ScreenshotConfig {
|
|
@@ -77,7 +77,7 @@ export declare class ScreenshotConfig {
|
|
|
77
77
|
cache?: boolean;
|
|
78
78
|
cache_ttl?: number;
|
|
79
79
|
cache_clear?: boolean;
|
|
80
|
-
vision_deficiency?: 'deuteranopia' | 'protanopia' | 'tritanopia' | 'achromatopsia' | '
|
|
80
|
+
vision_deficiency?: 'deuteranopia' | 'protanopia' | 'tritanopia' | 'achromatopsia' | 'blurredVision' | 'reducedContrast' | VisionDeficiency;
|
|
81
81
|
webhook?: string;
|
|
82
82
|
constructor(options: ScreenshotConfigOptions);
|
|
83
83
|
private validateOptions;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"screenshotconfig.d.ts","sourceRoot":"","sources":["../src/screenshotconfig.ts"],"names":[],"mappings":"AAIA,oBAAY,OAAO;IACjB;;;;;;;QAOI;IACJ,WAAW,gBAAgB;IAC3B,SAAS,cAAc;IACvB,aAAa,kBAAkB;IAC/B,kBAAkB,uBAAuB;CAC1C;AAED,oBAAY,MAAM;IAChB;;;;;;;QAOI;IACJ,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,IAAI,SAAS;IACb,GAAG,QAAQ;CACZ;AAED,oBAAY,gBAAgB;IAC1B;;;;;;;;;OASG;IACH,YAAY,iBAAiB;IAC7B,UAAU,eAAe;IACzB,UAAU,eAAe;IACzB,aAAa,kBAAkB;IAC/B,gBAAgB,oBAAoB;IACpC,cAAc,kBAAkB;CACjC;AAED,KAAK,uBAAuB,GAAG;IAC7B,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,CAAC,EAAE,KAAK,GAAG,KAAK,GAAG,MAAM,GAAG,KAAK,GAAG,MAAM,CAAC;IACjD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,OAAO,CAAC,EAAE,CAAC,aAAa,GAAG,WAAW,GAAG,eAAe,GAAG,oBAAoB,GAAG,OAAO,CAAC,EAAE,CAAC;IAC7F,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAA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d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAEtC,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAQtD;AAED,MAAM,MAAM,cAAc,GAAG;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC;CAC5B,CAAC;AAEF,wBAAsB,UAAU,CAC9B,MAAM,EAAE,cAAc,EACtB,OAAO,GAAE,MAAU,EACnB,UAAU,GAAE,MAAa,GACxB,OAAO,CAAC,QAAQ,CAAC,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAEtC,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAQtD;AAED,MAAM,MAAM,cAAc,GAAG;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC;CAC5B,CAAC;AAEF,wBAAsB,UAAU,CAC9B,MAAM,EAAE,cAAc,EACtB,OAAO,GAAE,MAAU,EACnB,UAAU,GAAE,MAAa,GACxB,OAAO,CAAC,QAAQ,CAAC,CA6CnB;AAED,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,GAAG,CAAC,MAAM,CAAC,GAAG,OAAO,GAAG,GAAG,CAAC,MAAM,CAAC,CAc5E"}
|
package/esm/utils.js
CHANGED
|
@@ -14,7 +14,18 @@ export async function fetchRetry(config, retries = 3, retryDelay = 1000) {
|
|
|
14
14
|
try {
|
|
15
15
|
// XXX: note that cloudflare workers don't support init options
|
|
16
16
|
const { url, ...reqInit } = config;
|
|
17
|
-
|
|
17
|
+
// The `body` field on RequestOptions is typed as string | Uint8Array for
|
|
18
|
+
// historical reasons. The dnt (deno-to-node) build does not expose the
|
|
19
|
+
// DOM `BodyInit` alias in every lib target, so we cast to `any` here to
|
|
20
|
+
// stay portable across Deno, Node, Bun and Cloudflare Workers. The
|
|
21
|
+
// runtime values (string | Uint8Array) are all valid fetch body inputs.
|
|
22
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
23
|
+
const init = {
|
|
24
|
+
method: reqInit.method,
|
|
25
|
+
headers: reqInit.headers,
|
|
26
|
+
body: reqInit.body,
|
|
27
|
+
};
|
|
28
|
+
const response = await fetch(new Request(url, init));
|
|
18
29
|
// retry 5xx status codes
|
|
19
30
|
if (response.status >= 500 && response.status < 600) {
|
|
20
31
|
const _text = await response.text(); // consume response to prevent leak
|
|
@@ -30,7 +41,10 @@ export async function fetchRetry(config, retries = 3, retryDelay = 1000) {
|
|
|
30
41
|
}
|
|
31
42
|
catch (error) {
|
|
32
43
|
lastError = error;
|
|
33
|
-
|
|
44
|
+
// AbortError should never be retried: it means the caller explicitly
|
|
45
|
+
// gave up (cancel token, timeout, etc.) and we shouldn't paper over it.
|
|
46
|
+
const isAbort = error instanceof Error && error.name === 'AbortError';
|
|
47
|
+
if (attempt === retries || isAbort) {
|
|
34
48
|
throw error;
|
|
35
49
|
}
|
|
36
50
|
await new Promise((resolve) => setTimeout(resolve, retryDelay));
|
package/package.json
CHANGED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
export declare enum ProxyPool {
|
|
2
|
+
DATACENTER = "datacenter",
|
|
3
|
+
RESIDENTIAL = "residential"
|
|
4
|
+
}
|
|
5
|
+
export declare enum OperatingSystem {
|
|
6
|
+
LINUX = "linux",
|
|
7
|
+
WINDOWS = "windows",
|
|
8
|
+
MACOS = "macos"
|
|
9
|
+
}
|
|
10
|
+
export type BrowserConfigOptions = {
|
|
11
|
+
proxy_pool?: ProxyPool | string;
|
|
12
|
+
os?: OperatingSystem | string;
|
|
13
|
+
session?: string;
|
|
14
|
+
country?: string;
|
|
15
|
+
auto_close?: boolean;
|
|
16
|
+
timeout?: number;
|
|
17
|
+
debug?: boolean;
|
|
18
|
+
extensions?: string[];
|
|
19
|
+
block_images?: boolean;
|
|
20
|
+
block_styles?: boolean;
|
|
21
|
+
block_fonts?: boolean;
|
|
22
|
+
block_media?: boolean;
|
|
23
|
+
screenshot?: boolean;
|
|
24
|
+
resolution?: string;
|
|
25
|
+
target_url?: string;
|
|
26
|
+
cache?: boolean;
|
|
27
|
+
blacklist?: boolean;
|
|
28
|
+
unblock?: boolean;
|
|
29
|
+
unblock_timeout?: number;
|
|
30
|
+
browser_brand?: string;
|
|
31
|
+
};
|
|
32
|
+
export declare class BrowserConfig {
|
|
33
|
+
proxy_pool?: string;
|
|
34
|
+
os?: string;
|
|
35
|
+
session?: string;
|
|
36
|
+
country?: string;
|
|
37
|
+
auto_close?: boolean;
|
|
38
|
+
timeout?: number;
|
|
39
|
+
debug?: boolean;
|
|
40
|
+
extensions?: string[];
|
|
41
|
+
block_images?: boolean;
|
|
42
|
+
block_styles?: boolean;
|
|
43
|
+
block_fonts?: boolean;
|
|
44
|
+
block_media?: boolean;
|
|
45
|
+
screenshot?: boolean;
|
|
46
|
+
resolution?: string;
|
|
47
|
+
target_url?: string;
|
|
48
|
+
cache?: boolean;
|
|
49
|
+
blacklist?: boolean;
|
|
50
|
+
unblock?: boolean;
|
|
51
|
+
unblock_timeout?: number;
|
|
52
|
+
browser_brand?: string;
|
|
53
|
+
constructor(options?: BrowserConfigOptions);
|
|
54
|
+
/**
|
|
55
|
+
* Generate the WebSocket URL for a Cloud Browser session.
|
|
56
|
+
*/
|
|
57
|
+
websocketUrl(apiKey: string, host?: string): string;
|
|
58
|
+
}
|
|
59
|
+
//# sourceMappingURL=browserconfig.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
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AAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,aAAa,CAAC,EAAE,MAAM,CAAC;gBAEX,OAAO,GAAE,oBAAyB;IA0B9C;;OAEG;IACH,YAAY,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM;CA4BpD"}
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BrowserConfig = exports.OperatingSystem = exports.ProxyPool = void 0;
|
|
4
|
+
var ProxyPool;
|
|
5
|
+
(function (ProxyPool) {
|
|
6
|
+
ProxyPool["DATACENTER"] = "datacenter";
|
|
7
|
+
ProxyPool["RESIDENTIAL"] = "residential";
|
|
8
|
+
})(ProxyPool || (exports.ProxyPool = ProxyPool = {}));
|
|
9
|
+
var OperatingSystem;
|
|
10
|
+
(function (OperatingSystem) {
|
|
11
|
+
OperatingSystem["LINUX"] = "linux";
|
|
12
|
+
OperatingSystem["WINDOWS"] = "windows";
|
|
13
|
+
OperatingSystem["MACOS"] = "macos";
|
|
14
|
+
})(OperatingSystem || (exports.OperatingSystem = OperatingSystem = {}));
|
|
15
|
+
class BrowserConfig {
|
|
16
|
+
constructor(options = {}) {
|
|
17
|
+
Object.defineProperty(this, "proxy_pool", {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
configurable: true,
|
|
20
|
+
writable: true,
|
|
21
|
+
value: void 0
|
|
22
|
+
});
|
|
23
|
+
Object.defineProperty(this, "os", {
|
|
24
|
+
enumerable: true,
|
|
25
|
+
configurable: true,
|
|
26
|
+
writable: true,
|
|
27
|
+
value: void 0
|
|
28
|
+
});
|
|
29
|
+
Object.defineProperty(this, "session", {
|
|
30
|
+
enumerable: true,
|
|
31
|
+
configurable: true,
|
|
32
|
+
writable: true,
|
|
33
|
+
value: void 0
|
|
34
|
+
});
|
|
35
|
+
Object.defineProperty(this, "country", {
|
|
36
|
+
enumerable: true,
|
|
37
|
+
configurable: true,
|
|
38
|
+
writable: true,
|
|
39
|
+
value: void 0
|
|
40
|
+
});
|
|
41
|
+
Object.defineProperty(this, "auto_close", {
|
|
42
|
+
enumerable: true,
|
|
43
|
+
configurable: true,
|
|
44
|
+
writable: true,
|
|
45
|
+
value: void 0
|
|
46
|
+
});
|
|
47
|
+
Object.defineProperty(this, "timeout", {
|
|
48
|
+
enumerable: true,
|
|
49
|
+
configurable: true,
|
|
50
|
+
writable: true,
|
|
51
|
+
value: void 0
|
|
52
|
+
});
|
|
53
|
+
Object.defineProperty(this, "debug", {
|
|
54
|
+
enumerable: true,
|
|
55
|
+
configurable: true,
|
|
56
|
+
writable: true,
|
|
57
|
+
value: void 0
|
|
58
|
+
});
|
|
59
|
+
Object.defineProperty(this, "extensions", {
|
|
60
|
+
enumerable: true,
|
|
61
|
+
configurable: true,
|
|
62
|
+
writable: true,
|
|
63
|
+
value: void 0
|
|
64
|
+
});
|
|
65
|
+
Object.defineProperty(this, "block_images", {
|
|
66
|
+
enumerable: true,
|
|
67
|
+
configurable: true,
|
|
68
|
+
writable: true,
|
|
69
|
+
value: void 0
|
|
70
|
+
});
|
|
71
|
+
Object.defineProperty(this, "block_styles", {
|
|
72
|
+
enumerable: true,
|
|
73
|
+
configurable: true,
|
|
74
|
+
writable: true,
|
|
75
|
+
value: void 0
|
|
76
|
+
});
|
|
77
|
+
Object.defineProperty(this, "block_fonts", {
|
|
78
|
+
enumerable: true,
|
|
79
|
+
configurable: true,
|
|
80
|
+
writable: true,
|
|
81
|
+
value: void 0
|
|
82
|
+
});
|
|
83
|
+
Object.defineProperty(this, "block_media", {
|
|
84
|
+
enumerable: true,
|
|
85
|
+
configurable: true,
|
|
86
|
+
writable: true,
|
|
87
|
+
value: void 0
|
|
88
|
+
});
|
|
89
|
+
Object.defineProperty(this, "screenshot", {
|
|
90
|
+
enumerable: true,
|
|
91
|
+
configurable: true,
|
|
92
|
+
writable: true,
|
|
93
|
+
value: void 0
|
|
94
|
+
});
|
|
95
|
+
Object.defineProperty(this, "resolution", {
|
|
96
|
+
enumerable: true,
|
|
97
|
+
configurable: true,
|
|
98
|
+
writable: true,
|
|
99
|
+
value: void 0
|
|
100
|
+
});
|
|
101
|
+
Object.defineProperty(this, "target_url", {
|
|
102
|
+
enumerable: true,
|
|
103
|
+
configurable: true,
|
|
104
|
+
writable: true,
|
|
105
|
+
value: void 0
|
|
106
|
+
});
|
|
107
|
+
Object.defineProperty(this, "cache", {
|
|
108
|
+
enumerable: true,
|
|
109
|
+
configurable: true,
|
|
110
|
+
writable: true,
|
|
111
|
+
value: void 0
|
|
112
|
+
});
|
|
113
|
+
Object.defineProperty(this, "blacklist", {
|
|
114
|
+
enumerable: true,
|
|
115
|
+
configurable: true,
|
|
116
|
+
writable: true,
|
|
117
|
+
value: void 0
|
|
118
|
+
});
|
|
119
|
+
Object.defineProperty(this, "unblock", {
|
|
120
|
+
enumerable: true,
|
|
121
|
+
configurable: true,
|
|
122
|
+
writable: true,
|
|
123
|
+
value: void 0
|
|
124
|
+
});
|
|
125
|
+
Object.defineProperty(this, "unblock_timeout", {
|
|
126
|
+
enumerable: true,
|
|
127
|
+
configurable: true,
|
|
128
|
+
writable: true,
|
|
129
|
+
value: void 0
|
|
130
|
+
});
|
|
131
|
+
Object.defineProperty(this, "browser_brand", {
|
|
132
|
+
enumerable: true,
|
|
133
|
+
configurable: true,
|
|
134
|
+
writable: true,
|
|
135
|
+
value: void 0
|
|
136
|
+
});
|
|
137
|
+
if (options.timeout !== undefined && options.timeout > 1800) {
|
|
138
|
+
throw new Error('timeout cannot exceed 1800 seconds (30 minutes)');
|
|
139
|
+
}
|
|
140
|
+
this.proxy_pool = options.proxy_pool;
|
|
141
|
+
this.os = options.os;
|
|
142
|
+
this.session = options.session;
|
|
143
|
+
this.country = options.country;
|
|
144
|
+
this.auto_close = options.auto_close;
|
|
145
|
+
this.timeout = options.timeout;
|
|
146
|
+
this.debug = options.debug;
|
|
147
|
+
this.extensions = options.extensions;
|
|
148
|
+
this.block_images = options.block_images;
|
|
149
|
+
this.block_styles = options.block_styles;
|
|
150
|
+
this.block_fonts = options.block_fonts;
|
|
151
|
+
this.block_media = options.block_media;
|
|
152
|
+
this.screenshot = options.screenshot;
|
|
153
|
+
this.resolution = options.resolution;
|
|
154
|
+
this.target_url = options.target_url;
|
|
155
|
+
this.cache = options.cache;
|
|
156
|
+
this.blacklist = options.blacklist;
|
|
157
|
+
this.unblock = options.unblock;
|
|
158
|
+
this.unblock_timeout = options.unblock_timeout;
|
|
159
|
+
this.browser_brand = options.browser_brand;
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* Generate the WebSocket URL for a Cloud Browser session.
|
|
163
|
+
*/
|
|
164
|
+
websocketUrl(apiKey, host) {
|
|
165
|
+
const params = new URLSearchParams();
|
|
166
|
+
params.set('api_key', apiKey);
|
|
167
|
+
if (this.proxy_pool !== undefined)
|
|
168
|
+
params.set('proxy_pool', this.proxy_pool);
|
|
169
|
+
if (this.os !== undefined)
|
|
170
|
+
params.set('os', this.os);
|
|
171
|
+
if (this.session !== undefined)
|
|
172
|
+
params.set('session', this.session);
|
|
173
|
+
if (this.country !== undefined)
|
|
174
|
+
params.set('country', this.country);
|
|
175
|
+
if (this.auto_close !== undefined)
|
|
176
|
+
params.set('auto_close', String(this.auto_close));
|
|
177
|
+
if (this.timeout !== undefined)
|
|
178
|
+
params.set('timeout', String(this.timeout));
|
|
179
|
+
if (this.debug !== undefined)
|
|
180
|
+
params.set('debug', String(this.debug));
|
|
181
|
+
if (this.extensions && this.extensions.length > 0)
|
|
182
|
+
params.set('extensions', this.extensions.join(','));
|
|
183
|
+
if (this.block_images !== undefined)
|
|
184
|
+
params.set('block_images', String(this.block_images));
|
|
185
|
+
if (this.block_styles !== undefined)
|
|
186
|
+
params.set('block_styles', String(this.block_styles));
|
|
187
|
+
if (this.block_fonts !== undefined)
|
|
188
|
+
params.set('block_fonts', String(this.block_fonts));
|
|
189
|
+
if (this.block_media !== undefined)
|
|
190
|
+
params.set('block_media', String(this.block_media));
|
|
191
|
+
if (this.screenshot !== undefined)
|
|
192
|
+
params.set('screenshot', String(this.screenshot));
|
|
193
|
+
if (this.resolution !== undefined)
|
|
194
|
+
params.set('resolution', this.resolution);
|
|
195
|
+
if (this.target_url !== undefined)
|
|
196
|
+
params.set('target_url', this.target_url);
|
|
197
|
+
if (this.cache !== undefined)
|
|
198
|
+
params.set('cache', String(this.cache));
|
|
199
|
+
if (this.blacklist !== undefined)
|
|
200
|
+
params.set('blacklist', String(this.blacklist));
|
|
201
|
+
if (this.unblock !== undefined)
|
|
202
|
+
params.set('unblock', String(this.unblock));
|
|
203
|
+
if (this.unblock_timeout !== undefined)
|
|
204
|
+
params.set('unblock_timeout', String(this.unblock_timeout));
|
|
205
|
+
if (this.browser_brand !== undefined)
|
|
206
|
+
params.set('browser_brand', this.browser_brand);
|
|
207
|
+
const baseHost = host || 'wss://browser.scrapfly.io';
|
|
208
|
+
return `${baseHost}?${params.toString()}`;
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
exports.BrowserConfig = BrowserConfig;
|
package/script/client.d.ts
CHANGED
|
@@ -3,14 +3,23 @@ import * as errors from './errors.js';
|
|
|
3
3
|
import type { ScrapeConfig } from './scrapeconfig.js';
|
|
4
4
|
import type { ScreenshotConfig } from './screenshotconfig.js';
|
|
5
5
|
import type { ExtractionConfig } from './extractionconfig.js';
|
|
6
|
+
import { BrowserConfig } from './browserconfig.js';
|
|
6
7
|
import { type AccountData, ExtractionResult, ScrapeResult, ScreenshotResult } from './result.js';
|
|
8
|
+
import type { CrawlerConfig, CrawlerContentFormat } from './crawlerconfig.js';
|
|
9
|
+
import { CrawlerArtifact, type CrawlerArtifactType, CrawlerContents, CrawlerStatus, CrawlerUrls } from './crawlerresult.js';
|
|
7
10
|
export declare class ScrapflyClient {
|
|
8
11
|
HOST: string;
|
|
12
|
+
CLOUD_BROWSER_HOST: string;
|
|
13
|
+
CLOUD_BROWSER_API_HOST: string;
|
|
9
14
|
private key;
|
|
10
15
|
private ua;
|
|
16
|
+
private cloudBrowserHost;
|
|
17
|
+
private cloudBrowserApiHost;
|
|
11
18
|
fetch: typeof fetchRetry;
|
|
12
19
|
constructor(options: {
|
|
13
20
|
key: string;
|
|
21
|
+
host?: string;
|
|
22
|
+
cloudBrowserHost?: string;
|
|
14
23
|
});
|
|
15
24
|
/**
|
|
16
25
|
* Raise appropriate error for given response and scrape result
|
|
@@ -31,7 +40,7 @@ export declare class ScrapflyClient {
|
|
|
31
40
|
/**
|
|
32
41
|
* Issue a single scrape command from a given scrape configuration
|
|
33
42
|
*/
|
|
34
|
-
scrape(config: ScrapeConfig): Promise<ScrapeResult>;
|
|
43
|
+
scrape(config: ScrapeConfig): Promise<ScrapeResult | Response>;
|
|
35
44
|
/**
|
|
36
45
|
Concurrently scrape multiple configs
|
|
37
46
|
This is a async generator call it like this:
|
|
@@ -69,5 +78,188 @@ export declare class ScrapflyClient {
|
|
|
69
78
|
* Extract structured data from a web page
|
|
70
79
|
*/
|
|
71
80
|
extract(config: ExtractionConfig): Promise<ExtractionResult>;
|
|
81
|
+
/**
|
|
82
|
+
* Throw a typed error for a crawler JSON error envelope.
|
|
83
|
+
*
|
|
84
|
+
* The crawler endpoints (status, urls, contents, artifact, cancel) return either
|
|
85
|
+
* a clean JSON body on success or an error envelope `{error_id, http_code, message, ...}`.
|
|
86
|
+
* Use this to map the envelope to one of `BadApiKeyError` / `ScrapflyCrawlerError` /
|
|
87
|
+
* `ApiHttpClientError`.
|
|
88
|
+
*/
|
|
89
|
+
private throwCrawlerError;
|
|
90
|
+
/**
|
|
91
|
+
* Schedule a new crawler job.
|
|
92
|
+
*
|
|
93
|
+
* `POST /crawl` — returns `{crawler_uuid, status}` on success. On failure throws
|
|
94
|
+
* `ScrapflyCrawlerError`, `BadApiKeyError`, or `ApiHttpClientError`.
|
|
95
|
+
*/
|
|
96
|
+
crawl(config: CrawlerConfig): Promise<{
|
|
97
|
+
crawler_uuid: string;
|
|
98
|
+
status: string;
|
|
99
|
+
}>;
|
|
100
|
+
/**
|
|
101
|
+
* Get the current status of a crawler job.
|
|
102
|
+
*
|
|
103
|
+
* `GET /crawl/{uuid}/status`
|
|
104
|
+
*/
|
|
105
|
+
crawlStatus(uuid: string): Promise<CrawlerStatus>;
|
|
106
|
+
/**
|
|
107
|
+
* List crawled URLs for a job, optionally filtered by status and paginated.
|
|
108
|
+
*
|
|
109
|
+
* `GET /crawl/{uuid}/urls?status=<filter>&page=<n>&per_page=<n>`
|
|
110
|
+
*
|
|
111
|
+
* The server streams the response as `text/plain` — one record per line.
|
|
112
|
+
* JSON is intentionally NOT used here because this endpoint is expected to
|
|
113
|
+
* scale to millions of URLs per job, and materialising that as JSON would
|
|
114
|
+
* be prohibitively expensive on both the server and the client. See
|
|
115
|
+
* {@link CrawlerUrls.fromText} for the exact line format.
|
|
116
|
+
*
|
|
117
|
+
* Pagination: the wire protocol carries no global `total`. Request further
|
|
118
|
+
* pages by incrementing `page` until a response contains no records.
|
|
119
|
+
*/
|
|
120
|
+
crawlUrls(uuid: string, opts?: {
|
|
121
|
+
status?: 'visited' | 'pending' | 'failed' | 'skipped';
|
|
122
|
+
page?: number;
|
|
123
|
+
per_page?: number;
|
|
124
|
+
}): Promise<CrawlerUrls>;
|
|
125
|
+
/**
|
|
126
|
+
* Get crawled content from a crawler job.
|
|
127
|
+
*
|
|
128
|
+
* Two modes:
|
|
129
|
+
*
|
|
130
|
+
* 1. **JSON mode** (default, `plain` omitted or false): returns a {@link CrawlerContents}
|
|
131
|
+
* with a `contents` map (URL → format → content) and pagination links. Useful for
|
|
132
|
+
* bulk retrieval. Honors `limit` (max 50, default 10) and `offset`.
|
|
133
|
+
*
|
|
134
|
+
* 2. **Plain mode** (`plain: true`): returns the raw content for a single URL/format
|
|
135
|
+
* as a `string`, with content-type matching the format. Requires `url`. Useful for
|
|
136
|
+
* piping markdown/text directly. **New in this SDK** (not in Python SDK as of 0.8.27).
|
|
137
|
+
*
|
|
138
|
+
* `GET /crawl/{uuid}/contents`
|
|
139
|
+
*/
|
|
140
|
+
crawlContents(uuid: string, opts: {
|
|
141
|
+
format: CrawlerContentFormat;
|
|
142
|
+
url?: string;
|
|
143
|
+
plain?: boolean;
|
|
144
|
+
limit?: number;
|
|
145
|
+
offset?: number;
|
|
146
|
+
}): Promise<CrawlerContents | string>;
|
|
147
|
+
/**
|
|
148
|
+
* Batch-retrieve crawled content for up to 100 URLs in one round-trip.
|
|
149
|
+
*
|
|
150
|
+
* `POST /crawl/{uuid}/contents/batch`
|
|
151
|
+
*
|
|
152
|
+
* The request body is a newline-separated list of URLs (`text/plain`). The response
|
|
153
|
+
* is a `multipart/related` (RFC 2387) document with one part per found URL. Each
|
|
154
|
+
* part has `Content-Type` (matching the format) and `Content-Location` (the URL).
|
|
155
|
+
*
|
|
156
|
+
* Returns a map of `url → format → content`. Formats not requested for a given URL
|
|
157
|
+
* are simply absent from its inner map.
|
|
158
|
+
*/
|
|
159
|
+
crawlContentsBatch(uuid: string, urls: string[], formats: CrawlerContentFormat[]): Promise<Record<string, Record<string, string>>>;
|
|
160
|
+
/**
|
|
161
|
+
* Download a crawler job's WARC or HAR artifact as raw bytes.
|
|
162
|
+
*
|
|
163
|
+
* `GET /crawl/{uuid}/artifact?type=warc|har`
|
|
164
|
+
*
|
|
165
|
+
* The SDK does NOT bundle WARC/HAR parsers — use a dedicated library (e.g. `warcio`
|
|
166
|
+
* on npm) to walk the records. The returned {@link CrawlerArtifact} provides a
|
|
167
|
+
* `save(path)` helper for the common case of writing the artifact to disk.
|
|
168
|
+
*/
|
|
169
|
+
crawlArtifact(uuid: string, type?: CrawlerArtifactType): Promise<CrawlerArtifact>;
|
|
170
|
+
/**
|
|
171
|
+
* Cancel a running crawler job.
|
|
172
|
+
*
|
|
173
|
+
* `POST /crawl/{uuid}/cancel` — returns `true` on success. The endpoint
|
|
174
|
+
* is idempotent: cancelling a crawl that has already finished is a no-op
|
|
175
|
+
* and still returns success.
|
|
176
|
+
*
|
|
177
|
+
* Note: earlier versions of this SDK called `DELETE /crawl/{uuid}`, which
|
|
178
|
+
* is not a valid public route — that path silently 404'd against the
|
|
179
|
+
* public API. Fixed in 0.8.0 to use the correct documented endpoint.
|
|
180
|
+
*/
|
|
181
|
+
crawlCancel(uuid: string): Promise<boolean>;
|
|
182
|
+
/**
|
|
183
|
+
* Get the WebSocket URL for a Cloud Browser session.
|
|
184
|
+
*/
|
|
185
|
+
cloudBrowser(config?: BrowserConfig): string;
|
|
186
|
+
/**
|
|
187
|
+
* Call the Cloud Browser Unblock API.
|
|
188
|
+
*/
|
|
189
|
+
cloudBrowserUnblock(options: {
|
|
190
|
+
url: string;
|
|
191
|
+
proxy_pool?: string;
|
|
192
|
+
country?: string;
|
|
193
|
+
os?: string;
|
|
194
|
+
timeout?: number;
|
|
195
|
+
browser_timeout?: number;
|
|
196
|
+
headers?: Record<string, string>;
|
|
197
|
+
body?: string;
|
|
198
|
+
method?: string;
|
|
199
|
+
}): Promise<{
|
|
200
|
+
ws_url: string;
|
|
201
|
+
session_id: string;
|
|
202
|
+
run_id: string;
|
|
203
|
+
}>;
|
|
204
|
+
/**
|
|
205
|
+
* Stop a Cloud Browser session.
|
|
206
|
+
*/
|
|
207
|
+
cloudBrowserSessionStop(sessionId: string): Promise<void>;
|
|
208
|
+
/**
|
|
209
|
+
* List all browser extensions.
|
|
210
|
+
*/
|
|
211
|
+
cloudBrowserExtensionList(): Promise<{
|
|
212
|
+
extensions: any[];
|
|
213
|
+
quota: {
|
|
214
|
+
used: number;
|
|
215
|
+
limit: number;
|
|
216
|
+
};
|
|
217
|
+
}>;
|
|
218
|
+
/**
|
|
219
|
+
* Delete a browser extension.
|
|
220
|
+
*/
|
|
221
|
+
cloudBrowserExtensionDelete(extensionId: string): Promise<{
|
|
222
|
+
success: boolean;
|
|
223
|
+
message: string;
|
|
224
|
+
}>;
|
|
225
|
+
/**
|
|
226
|
+
* Get details of a specific browser extension.
|
|
227
|
+
*/
|
|
228
|
+
cloudBrowserExtensionGet(extensionId: string): Promise<Record<string, any>>;
|
|
229
|
+
/**
|
|
230
|
+
* Upload a browser extension from a local file (.zip or .crx).
|
|
231
|
+
* Pass a file path — the file is read and sent as multipart/form-data.
|
|
232
|
+
*/
|
|
233
|
+
cloudBrowserExtensionUpload(filePath: string): Promise<{
|
|
234
|
+
extension: Record<string, any>;
|
|
235
|
+
is_update: boolean;
|
|
236
|
+
}>;
|
|
237
|
+
/**
|
|
238
|
+
* Install a browser extension from a URL (.crx file).
|
|
239
|
+
* URL-based extensions auto-update on each browser session start.
|
|
240
|
+
*/
|
|
241
|
+
cloudBrowserExtensionUploadFromUrl(extensionUrl: string): Promise<{
|
|
242
|
+
extension: Record<string, any>;
|
|
243
|
+
is_update: boolean;
|
|
244
|
+
}>;
|
|
245
|
+
/**
|
|
246
|
+
* Download a debug session recording video.
|
|
247
|
+
* Returns the video as an ArrayBuffer (stream from server).
|
|
248
|
+
*/
|
|
249
|
+
cloudBrowserVideo(runId: string): Promise<{
|
|
250
|
+
data: ArrayBuffer;
|
|
251
|
+
filename: string;
|
|
252
|
+
}>;
|
|
253
|
+
/**
|
|
254
|
+
* Get playback info for a debug session recording.
|
|
255
|
+
*/
|
|
256
|
+
cloudBrowserPlayback(runId: string): Promise<Record<string, any>>;
|
|
257
|
+
/**
|
|
258
|
+
* List all running Cloud Browser sessions.
|
|
259
|
+
*/
|
|
260
|
+
cloudBrowserSessions(): Promise<{
|
|
261
|
+
sessions: any[];
|
|
262
|
+
total: number;
|
|
263
|
+
}>;
|
|
72
264
|
}
|
|
73
265
|
//# 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,KAAK,WAAW,EAAE,gBAAgB,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,aAAa,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,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,gBAAgB,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAGjG,OAAO,KAAK,EAAE,aAAa,EAAE,o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