scrapfly-sdk 0.9.0 → 0.10.2
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 +40 -0
- package/esm/batch.d.ts.map +1 -0
- package/esm/batch.js +251 -0
- package/esm/browserconfig.d.ts +2 -0
- package/esm/browserconfig.d.ts.map +1 -1
- package/esm/browserconfig.js +9 -0
- package/esm/client.d.ts +47 -1
- package/esm/client.d.ts.map +1 -1
- package/esm/client.js +300 -0
- package/esm/main.d.ts +2 -1
- package/esm/main.d.ts.map +1 -1
- package/esm/monitoringconfig.d.ts +36 -0
- package/esm/monitoringconfig.d.ts.map +1 -0
- package/esm/monitoringconfig.js +10 -0
- package/esm/result.d.ts +12 -0
- package/esm/result.d.ts.map +1 -1
- package/package.json +2 -1
- package/script/batch.d.ts +40 -0
- package/script/batch.d.ts.map +1 -0
- package/script/batch.js +256 -0
- package/script/browserconfig.d.ts +2 -0
- package/script/browserconfig.d.ts.map +1 -1
- package/script/browserconfig.js +9 -0
- package/script/client.d.ts +47 -1
- package/script/client.d.ts.map +1 -1
- package/script/client.js +300 -0
- package/script/main.d.ts +2 -1
- package/script/main.d.ts.map +1 -1
- package/script/monitoringconfig.d.ts +36 -0
- package/script/monitoringconfig.d.ts.map +1 -0
- package/script/monitoringconfig.js +13 -0
- package/script/result.d.ts +12 -0
- package/script/result.d.ts.map +1 -1
package/esm/client.js
CHANGED
|
@@ -6,6 +6,7 @@ import { BrowserConfig } from './browserconfig.js';
|
|
|
6
6
|
import { ExtractionResult, ScrapeResult, ScreenshotResult } from './result.js';
|
|
7
7
|
import { log } from './logger.js';
|
|
8
8
|
import { CrawlerArtifact, CrawlerContents, CrawlerStatus, CrawlerUrls } from './crawlerresult.js';
|
|
9
|
+
import { formatMonitoringDate, } from './monitoringconfig.js';
|
|
9
10
|
export class ScrapflyClient {
|
|
10
11
|
constructor(options) {
|
|
11
12
|
Object.defineProperty(this, "HOST", {
|
|
@@ -229,6 +230,179 @@ export class ScrapflyClient {
|
|
|
229
230
|
}
|
|
230
231
|
return data;
|
|
231
232
|
}
|
|
233
|
+
/**
|
|
234
|
+
* Classify an already-fetched HTTP response for anti-bot blocking.
|
|
235
|
+
*
|
|
236
|
+
* Runs the same anti-bot detection pipeline used by live Scrapfly
|
|
237
|
+
* scrapes against a response you already have (from your own proxy,
|
|
238
|
+
* cache, etc). 1 API credit per call. See
|
|
239
|
+
* https://scrapfly.io/docs/scrape-api/classify for the full contract.
|
|
240
|
+
*/
|
|
241
|
+
async classify(options) {
|
|
242
|
+
if (!options || !options.url) {
|
|
243
|
+
throw new errors.ScrapflyError('classify: url is required');
|
|
244
|
+
}
|
|
245
|
+
if (typeof options.statusCode !== 'number' ||
|
|
246
|
+
options.statusCode < 100 ||
|
|
247
|
+
options.statusCode > 599) {
|
|
248
|
+
throw new errors.ScrapflyError('classify: status_code must be a valid HTTP status in [100, 599]');
|
|
249
|
+
}
|
|
250
|
+
const body = {
|
|
251
|
+
url: options.url,
|
|
252
|
+
status_code: options.statusCode,
|
|
253
|
+
method: options.method ?? 'GET',
|
|
254
|
+
};
|
|
255
|
+
if (options.headers && Object.keys(options.headers).length > 0) {
|
|
256
|
+
const hdrs = {};
|
|
257
|
+
for (const [k, v] of Object.entries(options.headers)) {
|
|
258
|
+
hdrs[String(k)] = String(v);
|
|
259
|
+
}
|
|
260
|
+
body.headers = hdrs;
|
|
261
|
+
}
|
|
262
|
+
if (options.body !== undefined && options.body !== null) {
|
|
263
|
+
body.body = options.body;
|
|
264
|
+
}
|
|
265
|
+
const url = new URL(this.HOST + '/classify');
|
|
266
|
+
url.search = new URLSearchParams({ key: this.key }).toString();
|
|
267
|
+
const response = await this.fetch({
|
|
268
|
+
url: url.toString(),
|
|
269
|
+
method: 'POST',
|
|
270
|
+
headers: {
|
|
271
|
+
'user-agent': this.ua,
|
|
272
|
+
'accept-encoding': 'gzip, deflate, br',
|
|
273
|
+
accept: 'application/json',
|
|
274
|
+
'content-type': 'application/json',
|
|
275
|
+
},
|
|
276
|
+
body: JSON.stringify(body),
|
|
277
|
+
});
|
|
278
|
+
const data = (await response.json());
|
|
279
|
+
if (response.status >= 400 || 'error_id' in data) {
|
|
280
|
+
if (response.status == 401) {
|
|
281
|
+
throw new errors.BadApiKeyError(JSON.stringify(data));
|
|
282
|
+
}
|
|
283
|
+
throw new errors.ApiHttpClientError(JSON.stringify(data));
|
|
284
|
+
}
|
|
285
|
+
return {
|
|
286
|
+
blocked: Boolean(data.blocked),
|
|
287
|
+
antibot: (data.antibot ?? null),
|
|
288
|
+
cost: Number(data.cost ?? 0),
|
|
289
|
+
};
|
|
290
|
+
}
|
|
291
|
+
// ── Monitoring API (Enterprise+ plan only) ──────────────────────
|
|
292
|
+
// The Monitoring API exposes per-product aggregates and per-target
|
|
293
|
+
// timeseries. Web Scraping / Screenshot / Extraction / Crawler share
|
|
294
|
+
// one shape (request-based) but live under different URL prefixes;
|
|
295
|
+
// Cloud Browser is session-based and exposes a distinct shape.
|
|
296
|
+
// See https://scrapfly.io/docs/monitoring#api
|
|
297
|
+
async monitoringRequest(path, params) {
|
|
298
|
+
const url = new URL(this.HOST + path);
|
|
299
|
+
url.search = new URLSearchParams(params).toString();
|
|
300
|
+
const response = await this.fetch({
|
|
301
|
+
url: url.toString(),
|
|
302
|
+
method: 'GET',
|
|
303
|
+
headers: {
|
|
304
|
+
'user-agent': this.ua,
|
|
305
|
+
'accept-encoding': 'gzip, deflate, br',
|
|
306
|
+
accept: 'application/json',
|
|
307
|
+
},
|
|
308
|
+
});
|
|
309
|
+
const data = (await response.json());
|
|
310
|
+
if ('error_id' in data) {
|
|
311
|
+
if (data.http_code == 401 || response.status == 401) {
|
|
312
|
+
throw new errors.BadApiKeyError(JSON.stringify(data));
|
|
313
|
+
}
|
|
314
|
+
throw new errors.ApiHttpClientError(JSON.stringify(data));
|
|
315
|
+
}
|
|
316
|
+
return data;
|
|
317
|
+
}
|
|
318
|
+
buildMetricsParams(options) {
|
|
319
|
+
const params = {
|
|
320
|
+
key: this.key,
|
|
321
|
+
format: options.format ?? 'structured',
|
|
322
|
+
};
|
|
323
|
+
if (options.period !== undefined)
|
|
324
|
+
params.period = options.period;
|
|
325
|
+
if (options.aggregation !== undefined && options.aggregation.length > 0) {
|
|
326
|
+
params.aggregation = options.aggregation.join(',');
|
|
327
|
+
}
|
|
328
|
+
if (options.includeWebhook)
|
|
329
|
+
params.include_webhook = 'true';
|
|
330
|
+
return params;
|
|
331
|
+
}
|
|
332
|
+
buildTargetParams(options) {
|
|
333
|
+
if ((options.start && !options.end) || (!options.start && options.end)) {
|
|
334
|
+
throw new Error('You must provide both start and end date');
|
|
335
|
+
}
|
|
336
|
+
const params = {
|
|
337
|
+
key: this.key,
|
|
338
|
+
domain: options.domain,
|
|
339
|
+
group_subdomain: String(options.groupSubdomain ?? false),
|
|
340
|
+
};
|
|
341
|
+
if (options.start && options.end) {
|
|
342
|
+
params.start = formatMonitoringDate(options.start);
|
|
343
|
+
params.end = formatMonitoringDate(options.end);
|
|
344
|
+
}
|
|
345
|
+
else if (options.period !== undefined) {
|
|
346
|
+
params.period = options.period;
|
|
347
|
+
}
|
|
348
|
+
else {
|
|
349
|
+
params.period = 'last24h';
|
|
350
|
+
}
|
|
351
|
+
if (options.includeWebhook)
|
|
352
|
+
params.include_webhook = 'true';
|
|
353
|
+
return params;
|
|
354
|
+
}
|
|
355
|
+
// ── Web Scraping API (existing — kept for backward compat) ──────
|
|
356
|
+
async getMonitoringMetrics(options = {}) {
|
|
357
|
+
return this.monitoringRequest('/scrape/monitoring/metrics', this.buildMetricsParams(options));
|
|
358
|
+
}
|
|
359
|
+
async getMonitoringTargetMetrics(options) {
|
|
360
|
+
return this.monitoringRequest('/scrape/monitoring/metrics/target', this.buildTargetParams(options));
|
|
361
|
+
}
|
|
362
|
+
// ── Screenshot API ───────────────────────────────────────────────
|
|
363
|
+
async getScreenshotMonitoringMetrics(options = {}) {
|
|
364
|
+
return this.monitoringRequest('/screenshot/monitoring/metrics', this.buildMetricsParams(options));
|
|
365
|
+
}
|
|
366
|
+
async getScreenshotMonitoringTargetMetrics(options) {
|
|
367
|
+
return this.monitoringRequest('/screenshot/monitoring/metrics/target', this.buildTargetParams(options));
|
|
368
|
+
}
|
|
369
|
+
// ── Extraction API ───────────────────────────────────────────────
|
|
370
|
+
async getExtractionMonitoringMetrics(options = {}) {
|
|
371
|
+
return this.monitoringRequest('/extraction/monitoring/metrics', this.buildMetricsParams(options));
|
|
372
|
+
}
|
|
373
|
+
async getExtractionMonitoringTargetMetrics(options) {
|
|
374
|
+
return this.monitoringRequest('/extraction/monitoring/metrics/target', this.buildTargetParams(options));
|
|
375
|
+
}
|
|
376
|
+
// ── Crawler API ──────────────────────────────────────────────────
|
|
377
|
+
async getCrawlerMonitoringMetrics(options = {}) {
|
|
378
|
+
return this.monitoringRequest('/crawl/monitoring/metrics', this.buildMetricsParams(options));
|
|
379
|
+
}
|
|
380
|
+
async getCrawlerMonitoringTargetMetrics(options) {
|
|
381
|
+
return this.monitoringRequest('/crawl/monitoring/metrics/target', this.buildTargetParams(options));
|
|
382
|
+
}
|
|
383
|
+
// ── Cloud Browser API (session-based, distinct shape) ────────────
|
|
384
|
+
async getBrowserMonitoringMetrics(options = {}) {
|
|
385
|
+
return this.monitoringRequest('/browser/monitoring/metrics', this.buildBrowserParams(options));
|
|
386
|
+
}
|
|
387
|
+
async getBrowserMonitoringTimeseries(options = {}) {
|
|
388
|
+
return this.monitoringRequest('/browser/monitoring/metrics/timeseries', this.buildBrowserParams(options));
|
|
389
|
+
}
|
|
390
|
+
buildBrowserParams(options) {
|
|
391
|
+
if ((options.start && !options.end) || (!options.start && options.end)) {
|
|
392
|
+
throw new Error('You must provide both start and end date');
|
|
393
|
+
}
|
|
394
|
+
const params = { key: this.key };
|
|
395
|
+
if (options.start && options.end) {
|
|
396
|
+
params.start = formatMonitoringDate(options.start);
|
|
397
|
+
params.end = formatMonitoringDate(options.end);
|
|
398
|
+
}
|
|
399
|
+
else if (options.period !== undefined) {
|
|
400
|
+
params.period = options.period;
|
|
401
|
+
}
|
|
402
|
+
if (options.proxyPool !== undefined)
|
|
403
|
+
params.proxy_pool = options.proxyPool;
|
|
404
|
+
return params;
|
|
405
|
+
}
|
|
232
406
|
/**
|
|
233
407
|
* Issue a single scrape command from a given scrape configuration
|
|
234
408
|
*/
|
|
@@ -382,6 +556,130 @@ export class ScrapflyClient {
|
|
|
382
556
|
yield resultOrError;
|
|
383
557
|
}
|
|
384
558
|
}
|
|
559
|
+
/**
|
|
560
|
+
* Issue a single batch request against POST /scrape/batch and
|
|
561
|
+
* stream results back as each scrape completes.
|
|
562
|
+
*
|
|
563
|
+
* Yields `[correlation_id, resultOrError]` tuples. Results arrive
|
|
564
|
+
* OUT OF ORDER — whichever scrape finishes first is yielded first.
|
|
565
|
+
* Every ScrapeConfig MUST carry a unique `correlation_id`; missing
|
|
566
|
+
* or duplicate values are caught client-side before the batch is
|
|
567
|
+
* sent (so callers fail fast on misconfiguration).
|
|
568
|
+
*
|
|
569
|
+
* Usage:
|
|
570
|
+
* for await (const [id, result] of client.scrapeBatch(configs)) {
|
|
571
|
+
* if (result instanceof errors.ScrapflyError) { ... }
|
|
572
|
+
* else { ... }
|
|
573
|
+
* }
|
|
574
|
+
*/
|
|
575
|
+
async *scrapeBatch(configs, options = {}) {
|
|
576
|
+
const wireFormat = options.format ?? 'json';
|
|
577
|
+
const acceptHeader = wireFormat === 'msgpack' ? 'application/msgpack' : 'application/json';
|
|
578
|
+
// Lazy-load the parser to avoid pulling Web Streams polyfills
|
|
579
|
+
// into the module graph for users who never call scrapeBatch.
|
|
580
|
+
const { iterBatchParts, decodePartBody, buildProxifiedResponseFromPart } = await import('./batch.js');
|
|
581
|
+
if (!configs || configs.length === 0) {
|
|
582
|
+
throw new errors.ScrapflyError('scrapeBatch: configs list is empty');
|
|
583
|
+
}
|
|
584
|
+
if (configs.length > 100) {
|
|
585
|
+
throw new errors.ScrapflyError(`scrapeBatch: max 100 configs per batch (got ${configs.length})`);
|
|
586
|
+
}
|
|
587
|
+
const seen = new Map();
|
|
588
|
+
const configByCorrelation = new Map();
|
|
589
|
+
const bodyConfigs = [];
|
|
590
|
+
for (let i = 0; i < configs.length; i++) {
|
|
591
|
+
const cfg = configs[i];
|
|
592
|
+
const correlationId = cfg.correlation_id;
|
|
593
|
+
if (!correlationId) {
|
|
594
|
+
throw new errors.ScrapflyError(`scrapeBatch: configs[${i}] is missing correlation_id (required for matching streamed parts)`);
|
|
595
|
+
}
|
|
596
|
+
if (seen.has(correlationId)) {
|
|
597
|
+
throw new errors.ScrapflyError(`scrapeBatch: correlation_id ${JSON.stringify(correlationId)} reused by configs[${seen.get(correlationId)}] and configs[${i}]`);
|
|
598
|
+
}
|
|
599
|
+
seen.set(correlationId, i);
|
|
600
|
+
configByCorrelation.set(correlationId, cfg);
|
|
601
|
+
// Reuse toApiParams to guarantee wire parity with /scrape.
|
|
602
|
+
// Drop `key` (batch key is in the URL).
|
|
603
|
+
const params = cfg.toApiParams({ key: this.key });
|
|
604
|
+
delete params.key;
|
|
605
|
+
bodyConfigs.push(params);
|
|
606
|
+
}
|
|
607
|
+
const url = new URL(this.HOST + '/scrape/batch');
|
|
608
|
+
url.search = new URLSearchParams({ key: this.key }).toString();
|
|
609
|
+
const response = await this.fetch({
|
|
610
|
+
url: url.toString(),
|
|
611
|
+
method: 'POST',
|
|
612
|
+
headers: {
|
|
613
|
+
'user-agent': this.ua,
|
|
614
|
+
'content-type': 'application/json',
|
|
615
|
+
// gzip is universally supported in fetch runtimes; skip zstd
|
|
616
|
+
// for streaming compatibility (Node < 22 / browsers don't
|
|
617
|
+
// auto-decompress zstd yet).
|
|
618
|
+
'accept-encoding': 'gzip',
|
|
619
|
+
accept: acceptHeader,
|
|
620
|
+
},
|
|
621
|
+
body: JSON.stringify({ configs: bodyConfigs }),
|
|
622
|
+
});
|
|
623
|
+
if (response.status !== 200) {
|
|
624
|
+
const body = await response.text();
|
|
625
|
+
let parsed;
|
|
626
|
+
try {
|
|
627
|
+
parsed = JSON.parse(body);
|
|
628
|
+
}
|
|
629
|
+
catch {
|
|
630
|
+
parsed = { message: body, code: 'ERR::API::INTERNAL_ERROR' };
|
|
631
|
+
}
|
|
632
|
+
throw new errors.ApiHttpServerError(`scrapeBatch: ${parsed.code ?? 'error'} (HTTP ${response.status}): ${parsed.message ?? body}`);
|
|
633
|
+
}
|
|
634
|
+
for await (const part of iterBatchParts(response)) {
|
|
635
|
+
const correlationId = part.headers['x-scrapfly-correlation-id'] ?? '';
|
|
636
|
+
// Proxified-response parts: the part body is the raw upstream
|
|
637
|
+
// bytes, not a JSON envelope. Surface a native fetch Response
|
|
638
|
+
// so callers get the same shape as a single proxified scrape
|
|
639
|
+
// (which returns Response from .scrape()).
|
|
640
|
+
if (part.headers['x-scrapfly-proxified'] === 'true') {
|
|
641
|
+
try {
|
|
642
|
+
const proxResponse = buildProxifiedResponseFromPart(part);
|
|
643
|
+
yield [correlationId, proxResponse];
|
|
644
|
+
}
|
|
645
|
+
catch (proxErr) {
|
|
646
|
+
yield [
|
|
647
|
+
correlationId,
|
|
648
|
+
new errors.ScrapflyError(`scrapeBatch: failed to build proxified response for correlation_id=${JSON.stringify(correlationId)}: ${proxErr}`),
|
|
649
|
+
];
|
|
650
|
+
}
|
|
651
|
+
continue;
|
|
652
|
+
}
|
|
653
|
+
let parsed;
|
|
654
|
+
try {
|
|
655
|
+
parsed = decodePartBody(part);
|
|
656
|
+
}
|
|
657
|
+
catch (decodeErr) {
|
|
658
|
+
yield [
|
|
659
|
+
correlationId,
|
|
660
|
+
new errors.ScrapflyError(`scrapeBatch: failed to decode part for correlation_id=${JSON.stringify(correlationId)}: ${decodeErr}`),
|
|
661
|
+
];
|
|
662
|
+
continue;
|
|
663
|
+
}
|
|
664
|
+
try {
|
|
665
|
+
const result = new ScrapeResult({
|
|
666
|
+
config: parsed.config,
|
|
667
|
+
context: parsed.context,
|
|
668
|
+
result: parsed.result,
|
|
669
|
+
uuid: parsed.uuid,
|
|
670
|
+
});
|
|
671
|
+
yield [correlationId, result];
|
|
672
|
+
}
|
|
673
|
+
catch (resultErr) {
|
|
674
|
+
yield [
|
|
675
|
+
correlationId,
|
|
676
|
+
resultErr instanceof errors.ScrapflyError
|
|
677
|
+
? resultErr
|
|
678
|
+
: new errors.ScrapflyError(`scrapeBatch: ${resultErr}`),
|
|
679
|
+
];
|
|
680
|
+
}
|
|
681
|
+
}
|
|
682
|
+
}
|
|
385
683
|
/**
|
|
386
684
|
* Save screenshot response to a file
|
|
387
685
|
*/
|
|
@@ -918,6 +1216,8 @@ export class ScrapflyClient {
|
|
|
918
1216
|
jsonBody.body = options.body;
|
|
919
1217
|
if (options.method)
|
|
920
1218
|
jsonBody.method = options.method;
|
|
1219
|
+
if (options.enable_mcp !== undefined)
|
|
1220
|
+
jsonBody.enable_mcp = options.enable_mcp;
|
|
921
1221
|
const url = new URL(this.cloudBrowserApiHost + '/unblock');
|
|
922
1222
|
url.searchParams.set('key', this.key);
|
|
923
1223
|
const response = await this.fetch({
|
package/esm/main.d.ts
CHANGED
|
@@ -6,12 +6,13 @@ export { BrowserConfig, ProxyPool, OperatingSystem } from './browserconfig.js';
|
|
|
6
6
|
export type { BrowserConfigOptions } from './browserconfig.js';
|
|
7
7
|
export * as errors from './errors.js';
|
|
8
8
|
export { ExtractionResult, ScrapeResult, ScreenshotResult } from './result.js';
|
|
9
|
-
export type { AccountData, ConfigData, ContextData, ResultData, ScreenshotMetadata } from './result.js';
|
|
9
|
+
export type { AccountData, ClassifyOptions, ClassifyResult, ConfigData, ContextData, ResultData, ScreenshotMetadata } from './result.js';
|
|
10
10
|
export { CrawlerConfig } from './crawlerconfig.js';
|
|
11
11
|
export type { CrawlerConfigOptions, CrawlerContentFormat, CrawlerWebhookEventName } from './crawlerconfig.js';
|
|
12
12
|
export { Crawl } from './crawl.js';
|
|
13
13
|
export { CrawlerArtifact, CrawlerContents, CrawlerStatus, CrawlerUrls, parseCrawlerWebhook, } from './crawlerresult.js';
|
|
14
14
|
export type { CrawlerArtifactType, CrawlerLifecycleWebhook, CrawlerState, CrawlerStatusValue, CrawlerStopReason, CrawlerUrlDiscoveredWebhook, CrawlerUrlEntry, CrawlerUrlFailedWebhook, CrawlerUrlSkippedWebhook, CrawlerUrlVisitedWebhook, CrawlerWebhookCommon, CrawlerWebhookPayload, } from './crawlerresult.js';
|
|
15
|
+
export type { CloudBrowserMonitoringOptions, MonitoringAggregation, MonitoringDataFormat, MonitoringMetricsOptions, MonitoringPeriod, MonitoringTargetMetricsOptions, } from './monitoringconfig.js';
|
|
15
16
|
export { log } from './logger.js';
|
|
16
17
|
export { createServer, verifySignature } from './webhookserver.js';
|
|
17
18
|
//# sourceMappingURL=main.d.ts.map
|
package/esm/main.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EACL,MAAM,IAAI,YAAY,EACtB,YAAY,IAAI,mBAAmB,EACnC,YAAY,EACZ,eAAe,GAChB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,MAAM,IAAI,gBAAgB,EAC1B,OAAO,IAAI,iBAAiB,EAC5B,gBAAgB,EAChB,gBAAgB,GACjB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAC/E,YAAY,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC/D,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AAEtC,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAE/E,YAAY,EAAE,WAAW,EAAE,UAAU,EAAE,WAAW,EAAE,UAAU,EA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AwB,EACxB,wBAAwB,EACxB,oBAAoB,EACpB,qBAAqB,GACtB,MAAM,oBAAoB,CAAC;AAG5B,YAAY,EACV,6BAA6B,EAC7B,qBAAqB,EACrB,oBAAoB,EACpB,wBAAwB,EACxB,gBAAgB,EAChB,8BAA8B,GAC/B,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAElC,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export type MonitoringDataFormat = 'structured' | 'prometheus';
|
|
2
|
+
export type MonitoringPeriod = 'subscription' | 'last7d' | 'last24h' | 'last1h' | 'last5m';
|
|
3
|
+
export type MonitoringAggregation = 'account' | 'project' | 'target';
|
|
4
|
+
export interface MonitoringMetricsOptions {
|
|
5
|
+
format?: MonitoringDataFormat;
|
|
6
|
+
period?: MonitoringPeriod;
|
|
7
|
+
aggregation?: MonitoringAggregation[];
|
|
8
|
+
/** Fold WEBHOOK origin events (callbacks executed by the webhook
|
|
9
|
+
* worker) into this product's totals. Defaults to false to match
|
|
10
|
+
* the dashboard's default view. */
|
|
11
|
+
includeWebhook?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export interface MonitoringTargetMetricsOptions {
|
|
14
|
+
domain: string;
|
|
15
|
+
groupSubdomain?: boolean;
|
|
16
|
+
period?: MonitoringPeriod;
|
|
17
|
+
start?: Date;
|
|
18
|
+
end?: Date;
|
|
19
|
+
/** Fold WEBHOOK origin events into this product's totals. */
|
|
20
|
+
includeWebhook?: boolean;
|
|
21
|
+
}
|
|
22
|
+
/** Options for the Cloud Browser monitoring endpoints. Cloud Browser
|
|
23
|
+
* is session-based (one allocation = one long-lived browser, billed
|
|
24
|
+
* by runtime + bandwidth) and exposes a distinct shape from the
|
|
25
|
+
* request-based products. There is no `domain`/`target` and no
|
|
26
|
+
* `includeWebhook`. */
|
|
27
|
+
export interface CloudBrowserMonitoringOptions {
|
|
28
|
+
period?: MonitoringPeriod;
|
|
29
|
+
/** Optional filter to a single proxy pool
|
|
30
|
+
* (e.g. `public_datacenter_pool`, `public_residential_pool`, `byop`). */
|
|
31
|
+
proxyPool?: string;
|
|
32
|
+
start?: Date;
|
|
33
|
+
end?: Date;
|
|
34
|
+
}
|
|
35
|
+
export declare function formatMonitoringDate(d: Date): string;
|
|
36
|
+
//# sourceMappingURL=monitoringconfig.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"monitoringconfig.d.ts","sourceRoot":"","sources":["../src/monitoringconfig.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,oBAAoB,GAAG,YAAY,GAAG,YAAY,CAAC;AAE/D,MAAM,MAAM,gBAAgB,GAAG,cAAc,GAAG,QAAQ,GAAG,SAAS,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAE3F,MAAM,MAAM,qBAAqB,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAC;AAErE,MAAM,WAAW,wBAAwB;IACvC,MAAM,CAAC,EAAE,oBAAoB,CAAC;IAC9B,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAC1B,WAAW,CAAC,EAAE,qBAAqB,EAAE,CAAC;IACtC;;uCAEmC;IACnC,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,MAAM,WAAW,8BAA8B;IAC7C,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAC1B,KAAK,CAAC,EAAE,IAAI,CAAC;IACb,GAAG,CAAC,EAAE,IAAI,CAAC;IACX,6DAA6D;IAC7D,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED;;;;uBAIuB;AACvB,MAAM,WAAW,6BAA6B;IAC5C,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAC1B;8EAC0E;IAC1E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,IAAI,CAAC;IACb,GAAG,CAAC,EAAE,IAAI,CAAC;CACZ;AAED,wBAAgB,oBAAoB,CAAC,CAAC,EAAE,IAAI,GAAG,MAAM,CASpD"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export function formatMonitoringDate(d) {
|
|
2
|
+
const pad = (n) => n.toString().padStart(2, '0');
|
|
3
|
+
const y = d.getUTCFullYear();
|
|
4
|
+
const mo = pad(d.getUTCMonth() + 1);
|
|
5
|
+
const da = pad(d.getUTCDate());
|
|
6
|
+
const h = pad(d.getUTCHours());
|
|
7
|
+
const mi = pad(d.getUTCMinutes());
|
|
8
|
+
const s = pad(d.getUTCSeconds());
|
|
9
|
+
return `${y}-${mo}-${da} ${h}:${mi}:${s}`;
|
|
10
|
+
}
|
package/esm/result.d.ts
CHANGED
|
@@ -205,6 +205,18 @@ export declare class ScrapeResult {
|
|
|
205
205
|
get selector(): cheerio.CheerioAPI;
|
|
206
206
|
}
|
|
207
207
|
export type ScrapeResultData = Record<string | number | symbol, never>;
|
|
208
|
+
export type ClassifyOptions = {
|
|
209
|
+
url: string;
|
|
210
|
+
statusCode: number;
|
|
211
|
+
headers?: Record<string, string>;
|
|
212
|
+
body?: string | null;
|
|
213
|
+
method?: string;
|
|
214
|
+
};
|
|
215
|
+
export type ClassifyResult = {
|
|
216
|
+
blocked: boolean;
|
|
217
|
+
antibot: string | null;
|
|
218
|
+
cost: number;
|
|
219
|
+
};
|
|
208
220
|
export type AccountData = {
|
|
209
221
|
account: {
|
|
210
222
|
account_id: string;
|
package/esm/result.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"result.d.ts","sourceRoot":"","sources":["../src/result.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAElD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGpC,MAAM,MAAM,UAAU,GAAG;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AAM,CAAC;gBACzB,OAAO,EAAE,MAAM,CAAC;gBAChB,KAAK,EAAE,MAAM,CAAC;gBACd,KAAK,EAAE,MAAM,CAAC;gBACd,SAAS,EAAE,MAAM,CAAC;aACnB,CAAC;SACH,CAAC;KACH,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,cAAc,EAAE,MAAM,CAAC;IACvB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,qBAAa,gBAAgB;IAC3B,KAAK,EAAE,WAAW,CAAC;IACnB,QAAQ,EAAE,kBAAkB,CAAC;IAC7B,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;gBAEV,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW;IAMjD,OAAO,CAAC,cAAc;IActB,OAAO,CAAC,cAAc;CAOvB;AAED,qBAAa,gBAAgB;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;gBAEV,QAAQ,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,YAAY,EAAE,MAAM,CAAC;QAAC,YAAY,CAAC,EAAE,MAAM,CAAA;KAAE;CAKpF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "scrapfly-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.2",
|
|
4
4
|
"description": "SDK for Scrapfly.io API for web scraping, screenshotting and data extraction",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"web scraping",
|
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
},
|
|
29
29
|
"type": "module",
|
|
30
30
|
"dependencies": {
|
|
31
|
+
"@msgpack/msgpack": "3.0.0",
|
|
31
32
|
"cheerio": "1.0.0-rc.12",
|
|
32
33
|
"@deno/shim-deno": "~0.18.0"
|
|
33
34
|
},
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Streaming multipart/mixed parser for POST /scrape/batch.
|
|
3
|
+
*
|
|
4
|
+
* The API emits one part per scrape as each completes. This module
|
|
5
|
+
* reads the response body as a ReadableStream and yields
|
|
6
|
+
* `(headers, body)` pairs as each part lands.
|
|
7
|
+
*
|
|
8
|
+
* No external dependencies — uses Web Streams (native in Node 18+
|
|
9
|
+
* and all modern browsers).
|
|
10
|
+
*/
|
|
11
|
+
export interface BatchPart {
|
|
12
|
+
headers: Record<string, string>;
|
|
13
|
+
body: Uint8Array;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Async iterator over multipart/mixed parts from a fetch Response.
|
|
17
|
+
*
|
|
18
|
+
* Yields one `BatchPart` per multipart section as it arrives on the
|
|
19
|
+
* wire. Throws if the response Content-Type is not multipart/mixed
|
|
20
|
+
* or the boundary is missing.
|
|
21
|
+
*/
|
|
22
|
+
export declare function iterBatchParts(response: Response): AsyncGenerator<BatchPart>;
|
|
23
|
+
/**
|
|
24
|
+
* Decode a part body according to its content-type header. Supports
|
|
25
|
+
* both application/json (default) and application/msgpack.
|
|
26
|
+
*/
|
|
27
|
+
export declare function decodePartBody<T = unknown>(part: BatchPart): T;
|
|
28
|
+
/**
|
|
29
|
+
* Synthesize a native fetch `Response` from a proxified batch part.
|
|
30
|
+
* The part body is the raw upstream bytes and the part carries:
|
|
31
|
+
* * `Content-Type` — the upstream's content-type
|
|
32
|
+
* * `X-Scrapfly-Scrape-Status` — the upstream's HTTP status
|
|
33
|
+
* * `X-Scrapfly-Upstream-<Name>` — upstream response headers
|
|
34
|
+
* * `X-Scrapfly-Log-Uuid`, `X-Scrapfly-Content-Format` — scrapfly metadata
|
|
35
|
+
*
|
|
36
|
+
* We return a Response with those values restored so the caller
|
|
37
|
+
* gets the same shape as a single proxified scrape.
|
|
38
|
+
*/
|
|
39
|
+
export declare function buildProxifiedResponseFromPart(part: BatchPart): Response;
|
|
40
|
+
//# sourceMappingURL=batch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"batch.d.ts","sourceRoot":"","sources":["../src/batch.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AA0CH,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,CAwHnF;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"}
|