@crawlee/playwright 4.0.0-beta.8 → 4.0.0-beta.80

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.
Files changed (31) hide show
  1. package/README.md +17 -13
  2. package/index.d.ts +0 -1
  3. package/index.js +0 -1
  4. package/internals/adaptive-playwright-crawler.d.ts +81 -58
  5. package/internals/adaptive-playwright-crawler.js +306 -208
  6. package/internals/enqueue-links/click-elements.d.ts +32 -14
  7. package/internals/enqueue-links/click-elements.js +57 -25
  8. package/internals/playwright-crawler.d.ts +96 -77
  9. package/internals/playwright-crawler.js +79 -38
  10. package/internals/playwright-launcher.d.ts +2 -1
  11. package/internals/playwright-launcher.js +1 -2
  12. package/internals/utils/playwright-utils.d.ts +54 -17
  13. package/internals/utils/playwright-utils.js +96 -83
  14. package/internals/utils/rendering-type-prediction.d.ts +9 -6
  15. package/internals/utils/rendering-type-prediction.js +58 -24
  16. package/package.json +16 -11
  17. package/index.d.ts.map +0 -1
  18. package/index.js.map +0 -1
  19. package/internals/adaptive-playwright-crawler.d.ts.map +0 -1
  20. package/internals/adaptive-playwright-crawler.js.map +0 -1
  21. package/internals/enqueue-links/click-elements.d.ts.map +0 -1
  22. package/internals/enqueue-links/click-elements.js.map +0 -1
  23. package/internals/playwright-crawler.d.ts.map +0 -1
  24. package/internals/playwright-crawler.js.map +0 -1
  25. package/internals/playwright-launcher.d.ts.map +0 -1
  26. package/internals/playwright-launcher.js.map +0 -1
  27. package/internals/utils/playwright-utils.d.ts.map +0 -1
  28. package/internals/utils/playwright-utils.js.map +0 -1
  29. package/internals/utils/rendering-type-prediction.d.ts.map +0 -1
  30. package/internals/utils/rendering-type-prediction.js.map +0 -1
  31. package/tsconfig.build.tsbuildinfo +0 -1
package/README.md CHANGED
@@ -1,19 +1,23 @@
1
1
  <h1 align="center">
2
2
  <a href="https://crawlee.dev">
3
3
  <picture>
4
- <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/apify/crawlee/master/website/static/img/crawlee-dark.svg?sanitize=true">
5
- <img alt="Crawlee" src="https://raw.githubusercontent.com/apify/crawlee/master/website/static/img/crawlee-light.svg?sanitize=true" width="500">
4
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/apify/crawlee/master/website/static/img/crawlee-dark.svg?sanitize=true" />
5
+ <img alt="Crawlee" src="https://raw.githubusercontent.com/apify/crawlee/master/website/static/img/crawlee-light.svg?sanitize=true" width="500" />
6
6
  </picture>
7
7
  </a>
8
- <br>
8
+ <br />
9
9
  <small>A web scraping and browser automation library</small>
10
10
  </h1>
11
11
 
12
- <p align=center>
13
- <a href="https://www.npmjs.com/package/@crawlee/core" rel="nofollow"><img src="https://img.shields.io/npm/v/@crawlee/core.svg" alt="NPM latest version" data-canonical-src="https://img.shields.io/npm/v/@crawlee/core/next.svg" style="max-width: 100%;"></a>
14
- <a href="https://www.npmjs.com/package/@crawlee/core" rel="nofollow"><img src="https://img.shields.io/npm/dm/@crawlee/core.svg" alt="Downloads" data-canonical-src="https://img.shields.io/npm/dm/@crawlee/core.svg" style="max-width: 100%;"></a>
15
- <a href="https://discord.gg/jyEM2PRvMU" rel="nofollow"><img src="https://img.shields.io/discord/801163717915574323?label=discord" alt="Chat on discord" data-canonical-src="https://img.shields.io/discord/801163717915574323?label=discord" style="max-width: 100%;"></a>
16
- <a href="https://github.com/apify/crawlee/actions/workflows/test-ci.yml"><img src="https://github.com/apify/crawlee/actions/workflows/test-ci.yml/badge.svg?branch=master" alt="Build Status" style="max-width: 100%;"></a>
12
+ <p align="center">
13
+ <a href="https://trendshift.io/repositories/5179" target="_blank"><img src="https://trendshift.io/api/badge/repositories/5179" alt="apify%2Fcrawlee | Trendshift" width="250" height="55"/></a>
14
+ </p>
15
+
16
+ <p align="center">
17
+ <a href="https://www.npmjs.com/package/@crawlee/core" rel="nofollow"><img src="https://img.shields.io/npm/v/@crawlee/core.svg" alt="NPM latest version" data-canonical-src="https://img.shields.io/npm/v/@crawlee/core/next.svg" /></a>
18
+ <a href="https://www.npmjs.com/package/@crawlee/core" rel="nofollow"><img src="https://img.shields.io/npm/dm/@crawlee/core.svg" alt="Downloads" data-canonical-src="https://img.shields.io/npm/dm/@crawlee/core.svg" /></a>
19
+ <a href="https://discord.gg/jyEM2PRvMU" rel="nofollow"><img src="https://img.shields.io/discord/801163717915574323?label=discord" alt="Chat on discord" data-canonical-src="https://img.shields.io/discord/801163717915574323?label=discord" /></a>
20
+ <a href="https://github.com/apify/crawlee/actions/workflows/test-ci.yml"><img src="https://github.com/apify/crawlee/actions/workflows/test-ci.yml/badge.svg?branch=master" alt="Build Status" /></a>
17
21
  </p>
18
22
 
19
23
  Crawlee covers your crawling and scraping end-to-end and **helps you build reliable scrapers. Fast.**
@@ -24,7 +28,7 @@ Crawlee is available as the [`crawlee`](https://www.npmjs.com/package/crawlee) N
24
28
 
25
29
  > 👉 **View full documentation, guides and examples on the [Crawlee project website](https://crawlee.dev)** 👈
26
30
 
27
- > Crawlee for Python is open for early adopters. 🐍 [👉 Checkout the source code 👈](https://github.com/apify/crawlee-python).
31
+ > Do you prefer 🐍 Python instead of JavaScript? [👉 Checkout Crawlee for Python 👈](https://github.com/apify/crawlee-python).
28
32
 
29
33
  ## Installation
30
34
 
@@ -85,7 +89,7 @@ By default, Crawlee stores data to `./storage` in the current working directory.
85
89
  We provide automated beta builds for every merged code change in Crawlee. You can find them in the npm [list of releases](https://www.npmjs.com/package/crawlee?activeTab=versions). If you want to test new features or bug fixes before we release them, feel free to install a beta build like this:
86
90
 
87
91
  ```bash
88
- npm install crawlee@3.12.3-beta.13
92
+ npm install crawlee@next
89
93
  ```
90
94
 
91
95
  If you also use the [Apify SDK](https://github.com/apify/apify-sdk-js), you need to specify dependency overrides in your `package.json` file so that you don't end up with multiple versions of Crawlee installed:
@@ -94,9 +98,9 @@ If you also use the [Apify SDK](https://github.com/apify/apify-sdk-js), you need
94
98
  {
95
99
  "overrides": {
96
100
  "apify": {
97
- "@crawlee/core": "3.12.3-beta.13",
98
- "@crawlee/types": "3.12.3-beta.13",
99
- "@crawlee/utils": "3.12.3-beta.13"
101
+ "@crawlee/core": "$crawlee",
102
+ "@crawlee/types": "$crawlee",
103
+ "@crawlee/utils": "$crawlee"
100
104
  }
101
105
  }
102
106
  }
package/index.d.ts CHANGED
@@ -7,4 +7,3 @@ export * as playwrightUtils from './internals/utils/playwright-utils.js';
7
7
  export * as playwrightClickElements from './internals/enqueue-links/click-elements.js';
8
8
  export type { DirectNavigationOptions as PlaywrightDirectNavigationOptions } from './internals/utils/playwright-utils.js';
9
9
  export type { RenderingType } from './internals/utils/rendering-type-prediction.js';
10
- //# sourceMappingURL=index.d.ts.map
package/index.js CHANGED
@@ -5,4 +5,3 @@ export * from './internals/adaptive-playwright-crawler.js';
5
5
  export { RenderingTypePredictor } from './internals/utils/rendering-type-prediction.js';
6
6
  export * as playwrightUtils from './internals/utils/playwright-utils.js';
7
7
  export * as playwrightClickElements from './internals/enqueue-links/click-elements.js';
8
- //# sourceMappingURL=index.js.map
@@ -1,24 +1,17 @@
1
- import type { BrowserHook, LoadedContext, RouterHandler } from '@crawlee/browser';
2
- import type { BaseHttpResponseData, GetUserDataFromRequest, RestrictedCrawlingContext, RouterRoutes, StatisticsOptions, StatisticState } from '@crawlee/core';
3
- import { Configuration, RequestHandlerResult, Statistics } from '@crawlee/core';
4
- import type { Awaitable, Dictionary } from '@crawlee/types';
1
+ import type { BrowserHook, LoadedRequest, Request, RouterHandler, RouteSchemas, RoutesFromSchemas } from '@crawlee/browser';
2
+ import type { BasicCrawlerOptions } from '@crawlee/basic';
3
+ import { BasicCrawler } from '@crawlee/basic';
4
+ import type { ContextPipeline, CrawlingContext, EnqueueLinksOptions, GetUserDataFromRequest, RestrictedCrawlingContext, RouterRoutes, StatisticsOptions, StatisticState } from '@crawlee/core';
5
+ import { RequestHandlerResult, Statistics } from '@crawlee/core';
6
+ import type { BatchAddRequestsResult, Dictionary, Awaitable } from '@crawlee/types';
5
7
  import { type CheerioRoot } from '@crawlee/utils';
6
8
  import { type Cheerio } from 'cheerio';
9
+ import type { AnyNode } from 'domhandler';
7
10
  // @ts-ignore optional peer dependency or compatibility with es2022
8
11
  import type { Page } from 'playwright';
9
- import type { Log } from '@apify/log';
10
- import type { PlaywrightCrawlerOptions, PlaywrightCrawlingContext, PlaywrightGotoOptions } from './playwright-crawler.js';
11
- import { PlaywrightCrawler } from './playwright-crawler.js';
12
+ import type { SetRequired } from 'type-fest';
13
+ import type { PlaywrightCrawlingContext, PlaywrightGotoOptions } from './playwright-crawler.js';
12
14
  import { RenderingTypePredictor } from './utils/rendering-type-prediction.js';
13
- type Result<TResult> = {
14
- result: TResult;
15
- ok: true;
16
- logs?: LogProxyCall[];
17
- } | {
18
- error: unknown;
19
- ok: false;
20
- logs?: LogProxyCall[];
21
- };
22
15
  interface AdaptivePlaywrightCrawlerStatisticState extends StatisticState {
23
16
  httpOnlyRequestHandlerRuns?: number;
24
17
  browserRequestHandlerRuns?: number;
@@ -33,11 +26,12 @@ declare class AdaptivePlaywrightCrawlerStatistics extends Statistics {
33
26
  trackBrowserRequestHandlerRun(): void;
34
27
  trackRenderingTypeMisprediction(): void;
35
28
  }
36
- export interface AdaptivePlaywrightCrawlerContext<UserData extends Dictionary = Dictionary> extends RestrictedCrawlingContext<UserData> {
29
+ export interface AdaptivePlaywrightCrawlerContext<UserData extends Dictionary = Dictionary> extends CrawlingContext<UserData> {
30
+ request: LoadedRequest<Request<UserData>>;
37
31
  /**
38
32
  * The HTTP response, either from the HTTP client or from the initial request from playwright's navigation.
39
33
  */
40
- response: BaseHttpResponseData;
34
+ response: Response;
41
35
  /**
42
36
  * Playwright Page object. If accessed in HTTP-only rendering, this will throw an error and make the AdaptivePlaywrightCrawlerContext retry the request in a browser.
43
37
  */
@@ -46,7 +40,7 @@ export interface AdaptivePlaywrightCrawlerContext<UserData extends Dictionary =
46
40
  * Wait for an element matching the selector to appear and return a Cheerio object of matched elements.
47
41
  * Timeout defaults to 5s.
48
42
  */
49
- querySelector<T = any>(selector: string, timeoutMs?: number): Promise<Cheerio<T>>;
43
+ querySelector(selector: string, timeoutMs?: number): Promise<Cheerio<AnyNode>>;
50
44
  /**
51
45
  * Wait for an element matching the selector to appear.
52
46
  * Timeout defaults to 5s.
@@ -74,36 +68,38 @@ export interface AdaptivePlaywrightCrawlerContext<UserData extends Dictionary =
74
68
  * ```
75
69
  */
76
70
  parseWithCheerio(selector?: string, timeoutMs?: number): Promise<CheerioRoot>;
71
+ enqueueLinks(options?: EnqueueLinksOptions): Promise<unknown>;
77
72
  }
78
- interface AdaptiveHook extends BrowserHook<Pick<AdaptivePlaywrightCrawlerContext, 'id' | 'request' | 'session' | 'proxyInfo' | 'log'> & {
73
+ interface AdaptiveHookContext extends Pick<AdaptivePlaywrightCrawlerContext, 'id' | 'session' | 'proxyInfo' | 'log'> {
79
74
  page?: Page;
80
- }, PlaywrightGotoOptions> {
75
+ request: Request;
76
+ gotoOptions?: PlaywrightGotoOptions;
81
77
  }
82
- export interface AdaptivePlaywrightCrawlerOptions extends Omit<PlaywrightCrawlerOptions, 'requestHandler' | 'preNavigationHooks' | 'postNavigationHooks'> {
83
- /**
84
- * Function that is called to process each request.
85
- *
86
- * The function receives the {@link AdaptivePlaywrightCrawlingContext} as an argument, and it must refrain from calling code with side effects,
87
- * other than the methods of the crawling context. Any other side effects may be invoked repeatedly by the crawler, which can lead to inconsistent results.
88
- *
89
- * The function must return a promise, which is then awaited by the crawler.
90
- *
91
- * If the function throws an exception, the crawler will try to re-crawl the
92
- * request later, up to `option.maxRequestRetries` times.
93
- */
94
- requestHandler?: (crawlingContext: LoadedContext<AdaptivePlaywrightCrawlerContext>) => Awaitable<void>;
78
+ interface AdaptiveHook extends BrowserHook<AdaptiveHookContext> {
79
+ }
80
+ interface AdaptivePostNavigationHook extends BrowserHook<Omit<AdaptiveHookContext, 'request'> & {
81
+ request: LoadedRequest<Request>;
82
+ }> {
83
+ }
84
+ export interface AdaptivePlaywrightCrawlerOptions<ExtendedContext extends AdaptivePlaywrightCrawlerContext = AdaptivePlaywrightCrawlerContext> extends Omit<BasicCrawlerOptions<AdaptivePlaywrightCrawlerContext, ExtendedContext>, 'preNavigationHooks' | 'postNavigationHooks'> {
95
85
  /**
96
86
  * Async functions that are sequentially evaluated before the navigation. Good for setting additional cookies.
97
87
  * The function accepts a subset of the crawling context. If you attempt to access the `page` property during HTTP-only crawling,
98
88
  * an exception will be thrown. If it's not caught, the request will be transparently retried in a browser.
89
+ *
90
+ * A hook may optionally return a partial object whose properties are merged into the crawling context,
91
+ * allowing the hook to override context members for subsequent hooks and pipeline stages.
99
92
  */
100
93
  preNavigationHooks?: AdaptiveHook[];
101
94
  /**
102
95
  * Async functions that are sequentially evaluated after the navigation. Good for checking if the navigation was successful.
103
96
  * The function accepts a subset of the crawling context. If you attempt to access the `page` property during HTTP-only crawling,
104
97
  * an exception will be thrown. If it's not caught, the request will be transparently retried in a browser.
98
+ *
99
+ * A hook may optionally return a partial object whose properties are merged into the crawling context
100
+ * (e.g. to override `response` after solving a challenge).
105
101
  */
106
- postNavigationHooks?: AdaptiveHook[];
102
+ postNavigationHooks?: AdaptivePostNavigationHook[];
107
103
  /**
108
104
  * Specifies the frequency of rendering type detection checks - 0.1 means roughly 10% of requests.
109
105
  * Defaults to 0.1 (so 10%).
@@ -115,25 +111,37 @@ export interface AdaptivePlaywrightCrawlerOptions extends Omit<PlaywrightCrawler
115
111
  * If no callback is specified, every dataset item is considered valid.
116
112
  */
117
113
  resultChecker?: (result: RequestHandlerResult) => boolean;
114
+ /**
115
+ * An optional callback that decides whether an error thrown during the plain HTTP request handler
116
+ * should be propagated (instead of falling back to browser navigation).
117
+ *
118
+ * If the callback returns `true`, the error is thrown, triggering the standard retry mechanism.
119
+ * If the callback returns `false` (or is not provided), the error is logged and the crawler
120
+ * falls back to browser navigation (default behavior).
121
+ *
122
+ * @default () => false
123
+ */
124
+ shouldPropagateError?: (error: Error, context: PlaywrightCrawlingContext) => Awaitable<boolean>;
118
125
  /**
119
126
  * An optional callback used in rendering type detection. On each detection, the result of the plain HTTP run is compared to that of the browser one.
120
- * If the callback returns true, the results are considered equal and the target site is considered static.
127
+ * If a callback is provided, the contract is as follows:
128
+ * It the callback returns true or 'equal', the results are considered equal and the target site is considered static.
129
+ * If it returns false or 'different', the target site is considered client-rendered.
130
+ * If it returns 'inconclusive', the detection result won't be used.
121
131
  * If no result comparator is specified, but there is a `resultChecker`, any site where the `resultChecker` returns true is considered static.
122
132
  * If neither `resultComparator` nor `resultChecker` are specified, a deep comparison of returned dataset items is used as a default.
123
133
  */
124
- resultComparator?: (resultA: RequestHandlerResult, resultB: RequestHandlerResult) => boolean;
134
+ resultComparator?: (resultA: RequestHandlerResult, resultB: RequestHandlerResult) => boolean | 'equal' | 'different' | 'inconclusive';
125
135
  /**
126
136
  * A custom rendering type predictor
127
137
  */
128
- renderingTypePredictor?: Pick<RenderingTypePredictor, 'predict' | 'storeResult'>;
138
+ renderingTypePredictor?: Pick<RenderingTypePredictor, 'predict' | 'storeResult' | 'initialize'>;
129
139
  /**
130
140
  * Prevent direct access to storage in request handlers (only allow using context helpers).
131
141
  * Defaults to `true`
132
142
  */
133
143
  preventDirectStorageAccess?: boolean;
134
144
  }
135
- declare const proxyLogMethods: readonly ["error", "exception", "softFail", "info", "debug", "perf", "warningOnce", "deprecated"];
136
- type LogProxyCall = [log: Log, method: (typeof proxyLogMethods)[number], ...args: unknown[]];
137
145
  /**
138
146
  * An extension of {@link PlaywrightCrawler} that uses a more limited request handler interface so that it is able to switch to HTTP-only crawling when it detects it may be possible.
139
147
  *
@@ -163,31 +171,46 @@ type LogProxyCall = [log: Log, method: (typeof proxyLogMethods)[number], ...args
163
171
  *
164
172
  * @experimental
165
173
  */
166
- export declare class AdaptivePlaywrightCrawler extends PlaywrightCrawler {
167
- readonly config: Configuration;
168
- private adaptiveRequestHandler;
174
+ export declare class AdaptivePlaywrightCrawler<ExtendedContext extends AdaptivePlaywrightCrawlerContext = AdaptivePlaywrightCrawlerContext> extends BasicCrawler<AdaptivePlaywrightCrawlerContext, ExtendedContext> {
169
175
  private renderingTypePredictor;
170
176
  private resultChecker;
177
+ private shouldPropagateError;
171
178
  private resultComparator;
172
179
  private preventDirectStorageAccess;
180
+ private staticContextPipeline;
181
+ private browserContextPipeline;
182
+ private individualRequestHandlerTimeoutMillis;
173
183
  readonly stats: AdaptivePlaywrightCrawlerStatistics;
184
+ private resultObjects;
185
+ private inFlightRenderingTypeDetections;
186
+ private teardownHooks;
187
+ constructor(options?: AdaptivePlaywrightCrawlerOptions<ExtendedContext>);
188
+ protected _init(): Promise<void>;
189
+ protected buildContextPipeline(): ContextPipeline<CrawlingContext<Dictionary>, CrawlingContext<Dictionary> & {
190
+ readonly request: LoadedRequest<Request<Dictionary>>;
191
+ readonly response: Response;
192
+ readonly page: Page;
193
+ readonly querySelector: AdaptivePlaywrightCrawlerContext["querySelector"];
194
+ readonly waitForSelector: AdaptivePlaywrightCrawlerContext["waitForSelector"];
195
+ readonly parseWithCheerio: AdaptivePlaywrightCrawlerContext["parseWithCheerio"];
196
+ }>;
197
+ private adaptCheerioContext;
198
+ private adaptPlaywrightContext;
199
+ private crawlOne;
200
+ protected runRequestHandler(crawlingContext: CrawlingContext): Promise<void>;
201
+ protected commitResult(crawlingContext: CrawlingContext, { calls, keyValueStoreChanges }: RequestHandlerResult): Promise<void>;
202
+ protected allowStorageAccess<R, TArgs extends any[]>(func: (...args: TArgs) => Promise<R>): (...args: TArgs) => Promise<R>;
174
203
  /**
175
- * Default {@link Router} instance that will be used if we don't specify any {@link AdaptivePlaywrightCrawlerOptions.requestHandler|`requestHandler`}.
176
- * See {@link Router.addHandler|`router.addHandler()`} and {@link Router.addDefaultHandler|`router.addDefaultHandler()`}.
204
+ * Reading the pending request count queries the underlying request manager, which counts as storage access.
205
+ * Since this is internal crawler bookkeeping used to compute the `enqueueLinks` limit (not user-initiated storage
206
+ * access), it must be allowed even while a request handler runs inside the storage-access guard.
177
207
  */
178
- // @ts-ignore optional peer dependency or compatibility with es2022
179
- readonly router: RouterHandler<AdaptivePlaywrightCrawlerContext>;
180
- constructor(options?: AdaptivePlaywrightCrawlerOptions, config?: Configuration);
181
- protected _runRequestHandler(crawlingContext: PlaywrightCrawlingContext): Promise<void>;
182
- protected commitResult(crawlingContext: PlaywrightCrawlingContext, { calls, keyValueStoreChanges }: RequestHandlerResult): Promise<void>;
183
- protected allowStorageAccess<R, TArgs extends any[]>(func: (...args: TArgs) => Promise<R>): (...args: TArgs) => Promise<R>;
184
- protected runRequestHandlerInBrowser(crawlingContext: PlaywrightCrawlingContext): Promise<{
185
- result: Result<RequestHandlerResult>;
186
- initialStateCopy?: Record<string, unknown>;
187
- }>;
188
- protected runRequestHandlerWithPlainHTTP(crawlingContext: PlaywrightCrawlingContext, oldStateCopy?: Dictionary): Promise<Result<RequestHandlerResult>>;
208
+ protected getPendingRequestCountApproximation(): Promise<number>;
209
+ protected enqueueLinks(options: SetRequired<EnqueueLinksOptions, 'urls'>, request: RestrictedCrawlingContext['request'], result: RequestHandlerResult): Promise<BatchAddRequestsResult>;
189
210
  private createLogProxy;
211
+ teardown(): Promise<void>;
190
212
  }
191
- export declare function createAdaptivePlaywrightRouter<Context extends AdaptivePlaywrightCrawlerContext = AdaptivePlaywrightCrawlerContext, UserData extends Dictionary = GetUserDataFromRequest<Context['request']>>(routes?: RouterRoutes<Context, UserData>): RouterHandler<Context>;
213
+ export declare function createAdaptivePlaywrightRouter<Context extends AdaptivePlaywrightCrawlerContext = AdaptivePlaywrightCrawlerContext, Routes extends Record<keyof Routes, Dictionary> = Record<string, GetUserDataFromRequest<Context['request']>>>(routes?: RouterRoutes<Context, Routes>): RouterHandler<Context, Routes>;
214
+ export declare function createAdaptivePlaywrightRouter<Context extends AdaptivePlaywrightCrawlerContext = AdaptivePlaywrightCrawlerContext, UserData extends Dictionary = GetUserDataFromRequest<Context['request']>>(routes?: RouterRoutes<Context, Record<string, UserData>>): RouterHandler<Context, Record<string, UserData>>;
215
+ export declare function createAdaptivePlaywrightRouter<Context extends AdaptivePlaywrightCrawlerContext = AdaptivePlaywrightCrawlerContext, const Schemas extends RouteSchemas = RouteSchemas>(schemas: Schemas): RouterHandler<Context, RoutesFromSchemas<Schemas>>;
192
216
  export {};
193
- //# sourceMappingURL=adaptive-playwright-crawler.d.ts.map