n8n-nodes-crawl4ai-plus 2.0.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/LICENSE +23 -0
- package/LICENSE.md +19 -0
- package/README.md +157 -0
- package/dist/credentials/Crawl4aiApi.credentials.d.ts +7 -0
- package/dist/credentials/Crawl4aiApi.credentials.js +242 -0
- package/dist/credentials/Crawl4aiApi.credentials.js.map +1 -0
- package/dist/nodes/Crawl4aiBasicCrawler/Crawl4aiBasicCrawler.node.d.ts +5 -0
- package/dist/nodes/Crawl4aiBasicCrawler/Crawl4aiBasicCrawler.node.js +37 -0
- package/dist/nodes/Crawl4aiBasicCrawler/Crawl4aiBasicCrawler.node.js.map +1 -0
- package/dist/nodes/Crawl4aiBasicCrawler/actions/crawlMultipleUrls.operation.d.ts +4 -0
- package/dist/nodes/Crawl4aiBasicCrawler/actions/crawlMultipleUrls.operation.js +299 -0
- package/dist/nodes/Crawl4aiBasicCrawler/actions/crawlMultipleUrls.operation.js.map +1 -0
- package/dist/nodes/Crawl4aiBasicCrawler/actions/crawlSingleUrl.operation.d.ts +4 -0
- package/dist/nodes/Crawl4aiBasicCrawler/actions/crawlSingleUrl.operation.js +324 -0
- package/dist/nodes/Crawl4aiBasicCrawler/actions/crawlSingleUrl.operation.js.map +1 -0
- package/dist/nodes/Crawl4aiBasicCrawler/actions/operations.d.ts +8 -0
- package/dist/nodes/Crawl4aiBasicCrawler/actions/operations.js +67 -0
- package/dist/nodes/Crawl4aiBasicCrawler/actions/operations.js.map +1 -0
- package/dist/nodes/Crawl4aiBasicCrawler/actions/processRawHtml.operation.d.ts +4 -0
- package/dist/nodes/Crawl4aiBasicCrawler/actions/processRawHtml.operation.js +148 -0
- package/dist/nodes/Crawl4aiBasicCrawler/actions/processRawHtml.operation.js.map +1 -0
- package/dist/nodes/Crawl4aiBasicCrawler/actions/router.d.ts +2 -0
- package/dist/nodes/Crawl4aiBasicCrawler/actions/router.js +37 -0
- package/dist/nodes/Crawl4aiBasicCrawler/actions/router.js.map +1 -0
- package/dist/nodes/Crawl4aiBasicCrawler/crawl4ai.svg +17 -0
- package/dist/nodes/Crawl4aiBasicCrawler/helpers/apiClient.d.ts +15 -0
- package/dist/nodes/Crawl4aiBasicCrawler/helpers/apiClient.js +226 -0
- package/dist/nodes/Crawl4aiBasicCrawler/helpers/apiClient.js.map +1 -0
- package/dist/nodes/Crawl4aiBasicCrawler/helpers/formatters.d.ts +5 -0
- package/dist/nodes/Crawl4aiBasicCrawler/helpers/formatters.js +81 -0
- package/dist/nodes/Crawl4aiBasicCrawler/helpers/formatters.js.map +1 -0
- package/dist/nodes/Crawl4aiBasicCrawler/helpers/interfaces.d.ts +189 -0
- package/dist/nodes/Crawl4aiBasicCrawler/helpers/interfaces.js +3 -0
- package/dist/nodes/Crawl4aiBasicCrawler/helpers/interfaces.js.map +1 -0
- package/dist/nodes/Crawl4aiBasicCrawler/helpers/utils.d.ts +8 -0
- package/dist/nodes/Crawl4aiBasicCrawler/helpers/utils.js +97 -0
- package/dist/nodes/Crawl4aiBasicCrawler/helpers/utils.js.map +1 -0
- package/dist/nodes/Crawl4aiContentExtractor/Crawl4aiContentExtractor.node.d.ts +5 -0
- package/dist/nodes/Crawl4aiContentExtractor/Crawl4aiContentExtractor.node.js +38 -0
- package/dist/nodes/Crawl4aiContentExtractor/Crawl4aiContentExtractor.node.js.map +1 -0
- package/dist/nodes/Crawl4aiContentExtractor/actions/cssExtractor.operation.d.ts +4 -0
- package/dist/nodes/Crawl4aiContentExtractor/actions/cssExtractor.operation.js +336 -0
- package/dist/nodes/Crawl4aiContentExtractor/actions/cssExtractor.operation.js.map +1 -0
- package/dist/nodes/Crawl4aiContentExtractor/actions/jsonExtractor.operation.d.ts +4 -0
- package/dist/nodes/Crawl4aiContentExtractor/actions/jsonExtractor.operation.js +369 -0
- package/dist/nodes/Crawl4aiContentExtractor/actions/jsonExtractor.operation.js.map +1 -0
- package/dist/nodes/Crawl4aiContentExtractor/actions/llmExtractor.operation.d.ts +4 -0
- package/dist/nodes/Crawl4aiContentExtractor/actions/llmExtractor.operation.js +786 -0
- package/dist/nodes/Crawl4aiContentExtractor/actions/llmExtractor.operation.js.map +1 -0
- package/dist/nodes/Crawl4aiContentExtractor/actions/operations.d.ts +8 -0
- package/dist/nodes/Crawl4aiContentExtractor/actions/operations.js +76 -0
- package/dist/nodes/Crawl4aiContentExtractor/actions/operations.js.map +1 -0
- package/dist/nodes/Crawl4aiContentExtractor/actions/regexExtractor.operation.d.ts +4 -0
- package/dist/nodes/Crawl4aiContentExtractor/actions/regexExtractor.operation.js +437 -0
- package/dist/nodes/Crawl4aiContentExtractor/actions/regexExtractor.operation.js.map +1 -0
- package/dist/nodes/Crawl4aiContentExtractor/actions/router.d.ts +2 -0
- package/dist/nodes/Crawl4aiContentExtractor/actions/router.js +37 -0
- package/dist/nodes/Crawl4aiContentExtractor/actions/router.js.map +1 -0
- package/dist/nodes/Crawl4aiContentExtractor/crawl4ai.svg +17 -0
- package/dist/nodes/Crawl4aiContentExtractor/helpers/apiClient.d.ts +1 -0
- package/dist/nodes/Crawl4aiContentExtractor/helpers/apiClient.js +7 -0
- package/dist/nodes/Crawl4aiContentExtractor/helpers/apiClient.js.map +1 -0
- package/dist/nodes/Crawl4aiContentExtractor/helpers/formatters.d.ts +1 -0
- package/dist/nodes/Crawl4aiContentExtractor/helpers/formatters.js +8 -0
- package/dist/nodes/Crawl4aiContentExtractor/helpers/formatters.js.map +1 -0
- package/dist/nodes/Crawl4aiContentExtractor/helpers/interfaces.d.ts +1 -0
- package/dist/nodes/Crawl4aiContentExtractor/helpers/interfaces.js +3 -0
- package/dist/nodes/Crawl4aiContentExtractor/helpers/interfaces.js.map +1 -0
- package/dist/nodes/Crawl4aiContentExtractor/helpers/utils.d.ts +6 -0
- package/dist/nodes/Crawl4aiContentExtractor/helpers/utils.js +89 -0
- package/dist/nodes/Crawl4aiContentExtractor/helpers/utils.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/index.js +14 -0
- package/package.json +70 -0
|
@@ -0,0 +1,336 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.description = void 0;
|
|
4
|
+
exports.execute = execute;
|
|
5
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
6
|
+
const utils_1 = require("../helpers/utils");
|
|
7
|
+
const formatters_1 = require("../../Crawl4aiBasicCrawler/helpers/formatters");
|
|
8
|
+
exports.description = [
|
|
9
|
+
{
|
|
10
|
+
displayName: 'URL',
|
|
11
|
+
name: 'url',
|
|
12
|
+
type: 'string',
|
|
13
|
+
required: true,
|
|
14
|
+
default: '',
|
|
15
|
+
placeholder: 'https://example.com',
|
|
16
|
+
description: 'The URL to extract content from',
|
|
17
|
+
displayOptions: {
|
|
18
|
+
show: {
|
|
19
|
+
operation: ['cssExtractor'],
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
displayName: 'Base Selector',
|
|
25
|
+
name: 'baseSelector',
|
|
26
|
+
type: 'string',
|
|
27
|
+
required: true,
|
|
28
|
+
default: '',
|
|
29
|
+
placeholder: 'div.product-item',
|
|
30
|
+
description: 'CSS selector for the repeating element (e.g., product items, article cards)',
|
|
31
|
+
displayOptions: {
|
|
32
|
+
show: {
|
|
33
|
+
operation: ['cssExtractor'],
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
displayName: 'Fields',
|
|
39
|
+
name: 'fields',
|
|
40
|
+
placeholder: 'Add Field',
|
|
41
|
+
type: 'fixedCollection',
|
|
42
|
+
typeOptions: {
|
|
43
|
+
multipleValues: true,
|
|
44
|
+
},
|
|
45
|
+
default: {},
|
|
46
|
+
displayOptions: {
|
|
47
|
+
show: {
|
|
48
|
+
operation: ['cssExtractor'],
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
options: [
|
|
52
|
+
{
|
|
53
|
+
name: 'fieldsValues',
|
|
54
|
+
displayName: 'Fields',
|
|
55
|
+
values: [
|
|
56
|
+
{
|
|
57
|
+
displayName: 'Field Name',
|
|
58
|
+
name: 'name',
|
|
59
|
+
type: 'string',
|
|
60
|
+
required: true,
|
|
61
|
+
default: '',
|
|
62
|
+
placeholder: 'title',
|
|
63
|
+
description: 'Name of the field to extract',
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
displayName: 'CSS Selector',
|
|
67
|
+
name: 'selector',
|
|
68
|
+
type: 'string',
|
|
69
|
+
required: true,
|
|
70
|
+
default: '',
|
|
71
|
+
placeholder: 'h3.title',
|
|
72
|
+
description: 'CSS selector relative to the base selector',
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
displayName: 'Field Type',
|
|
76
|
+
name: 'fieldType',
|
|
77
|
+
type: 'options',
|
|
78
|
+
options: [
|
|
79
|
+
{
|
|
80
|
+
name: 'Text',
|
|
81
|
+
value: 'text',
|
|
82
|
+
description: 'Extract text content',
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
name: 'HTML',
|
|
86
|
+
value: 'html',
|
|
87
|
+
description: 'Extract HTML content',
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
name: 'Attribute',
|
|
91
|
+
value: 'attribute',
|
|
92
|
+
description: 'Extract an attribute value',
|
|
93
|
+
},
|
|
94
|
+
],
|
|
95
|
+
default: 'text',
|
|
96
|
+
description: 'Type of data to extract',
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
displayName: 'Attribute Name',
|
|
100
|
+
name: 'attribute',
|
|
101
|
+
type: 'string',
|
|
102
|
+
displayOptions: {
|
|
103
|
+
show: {
|
|
104
|
+
fieldType: ['attribute'],
|
|
105
|
+
},
|
|
106
|
+
},
|
|
107
|
+
default: 'href',
|
|
108
|
+
placeholder: 'href',
|
|
109
|
+
description: 'Name of the attribute to extract',
|
|
110
|
+
},
|
|
111
|
+
],
|
|
112
|
+
},
|
|
113
|
+
],
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
displayName: 'Browser Options',
|
|
117
|
+
name: 'browserOptions',
|
|
118
|
+
type: 'collection',
|
|
119
|
+
placeholder: 'Add Option',
|
|
120
|
+
default: {},
|
|
121
|
+
displayOptions: {
|
|
122
|
+
show: {
|
|
123
|
+
operation: ['cssExtractor'],
|
|
124
|
+
},
|
|
125
|
+
},
|
|
126
|
+
options: [
|
|
127
|
+
{
|
|
128
|
+
displayName: 'Browser Type',
|
|
129
|
+
name: 'browserType',
|
|
130
|
+
type: 'options',
|
|
131
|
+
options: [
|
|
132
|
+
{
|
|
133
|
+
name: 'Chromium',
|
|
134
|
+
value: 'chromium',
|
|
135
|
+
description: 'Use Chromium browser (default, most compatible)',
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
name: 'Firefox',
|
|
139
|
+
value: 'firefox',
|
|
140
|
+
description: 'Use Firefox browser',
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
name: 'Webkit',
|
|
144
|
+
value: 'webkit',
|
|
145
|
+
description: 'Use Webkit browser (Safari engine)',
|
|
146
|
+
},
|
|
147
|
+
],
|
|
148
|
+
default: 'chromium',
|
|
149
|
+
description: 'Which browser engine to use for crawling',
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
displayName: 'Enable JavaScript',
|
|
153
|
+
name: 'javaScriptEnabled',
|
|
154
|
+
type: 'boolean',
|
|
155
|
+
default: true,
|
|
156
|
+
description: 'Whether to enable JavaScript execution',
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
displayName: 'Enable Stealth Mode',
|
|
160
|
+
name: 'enableStealth',
|
|
161
|
+
type: 'boolean',
|
|
162
|
+
default: false,
|
|
163
|
+
description: 'Whether to enable stealth mode to bypass basic bot detection (hides webdriver properties and modifies browser fingerprints)',
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
displayName: 'Headless Mode',
|
|
167
|
+
name: 'headless',
|
|
168
|
+
type: 'boolean',
|
|
169
|
+
default: true,
|
|
170
|
+
description: 'Whether to run browser in headless mode',
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
displayName: 'JavaScript Code',
|
|
174
|
+
name: 'jsCode',
|
|
175
|
+
type: 'string',
|
|
176
|
+
typeOptions: {
|
|
177
|
+
rows: 4,
|
|
178
|
+
},
|
|
179
|
+
default: '',
|
|
180
|
+
placeholder: 'document.querySelector("button.load-more").click();',
|
|
181
|
+
description: 'JavaScript code to execute before extraction (e.g., to click buttons, scroll)',
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
displayName: 'Timeout (Ms)',
|
|
185
|
+
name: 'timeout',
|
|
186
|
+
type: 'number',
|
|
187
|
+
default: 30000,
|
|
188
|
+
description: 'Maximum time to wait for the browser to load the page',
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
displayName: 'Viewport Height',
|
|
192
|
+
name: 'viewportHeight',
|
|
193
|
+
type: 'number',
|
|
194
|
+
default: 800,
|
|
195
|
+
description: 'The height of the browser viewport',
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
displayName: 'Viewport Width',
|
|
199
|
+
name: 'viewportWidth',
|
|
200
|
+
type: 'number',
|
|
201
|
+
default: 1280,
|
|
202
|
+
description: 'The width of the browser viewport',
|
|
203
|
+
},
|
|
204
|
+
],
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
displayName: 'Options',
|
|
208
|
+
name: 'options',
|
|
209
|
+
type: 'collection',
|
|
210
|
+
placeholder: 'Add Option',
|
|
211
|
+
default: {},
|
|
212
|
+
displayOptions: {
|
|
213
|
+
show: {
|
|
214
|
+
operation: ['cssExtractor'],
|
|
215
|
+
},
|
|
216
|
+
},
|
|
217
|
+
options: [
|
|
218
|
+
{
|
|
219
|
+
displayName: 'Cache Mode',
|
|
220
|
+
name: 'cacheMode',
|
|
221
|
+
type: 'options',
|
|
222
|
+
options: [
|
|
223
|
+
{
|
|
224
|
+
name: 'Bypass (Skip Cache)',
|
|
225
|
+
value: 'BYPASS',
|
|
226
|
+
description: 'Skip cache for this operation, fetch fresh content',
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
name: 'Disabled (No Cache)',
|
|
230
|
+
value: 'DISABLED',
|
|
231
|
+
description: 'No caching at all',
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
name: 'Enabled (Read/Write)',
|
|
235
|
+
value: 'ENABLED',
|
|
236
|
+
description: 'Use cache if available, save new results to cache',
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
name: 'Read Only',
|
|
240
|
+
value: 'READ_ONLY',
|
|
241
|
+
description: 'Only read from cache, do not write new results',
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
name: 'Write Only',
|
|
245
|
+
value: 'WRITE_ONLY',
|
|
246
|
+
description: 'Only write to cache, do not read existing cache',
|
|
247
|
+
},
|
|
248
|
+
],
|
|
249
|
+
default: 'ENABLED',
|
|
250
|
+
description: 'How to use the cache when crawling',
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
displayName: 'Include Original Text',
|
|
254
|
+
name: 'includeFullText',
|
|
255
|
+
type: 'boolean',
|
|
256
|
+
default: false,
|
|
257
|
+
description: 'Whether to include the original webpage text in output',
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
displayName: 'Clean Text',
|
|
261
|
+
name: 'cleanText',
|
|
262
|
+
type: 'boolean',
|
|
263
|
+
default: true,
|
|
264
|
+
description: 'Whether to clean and normalize extracted text (remove extra spaces, newlines)',
|
|
265
|
+
},
|
|
266
|
+
],
|
|
267
|
+
},
|
|
268
|
+
];
|
|
269
|
+
async function execute(items, nodeOptions) {
|
|
270
|
+
var _a;
|
|
271
|
+
const allResults = [];
|
|
272
|
+
for (let i = 0; i < items.length; i++) {
|
|
273
|
+
try {
|
|
274
|
+
const url = this.getNodeParameter('url', i, '');
|
|
275
|
+
const baseSelector = this.getNodeParameter('baseSelector', i, '');
|
|
276
|
+
const fieldsValues = this.getNodeParameter('fields.fieldsValues', i, []);
|
|
277
|
+
const browserOptions = this.getNodeParameter('browserOptions', i, {});
|
|
278
|
+
const options = this.getNodeParameter('options', i, {});
|
|
279
|
+
if (!url) {
|
|
280
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'URL cannot be empty.', { itemIndex: i });
|
|
281
|
+
}
|
|
282
|
+
if (!(0, utils_1.isValidUrl)(url)) {
|
|
283
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Invalid URL: ${url}`, { itemIndex: i });
|
|
284
|
+
}
|
|
285
|
+
if (!baseSelector) {
|
|
286
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'Base selector cannot be empty.', { itemIndex: i });
|
|
287
|
+
}
|
|
288
|
+
if (!fieldsValues || fieldsValues.length === 0) {
|
|
289
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'At least one field must be defined.', { itemIndex: i });
|
|
290
|
+
}
|
|
291
|
+
const schema = {
|
|
292
|
+
name: 'extracted_items',
|
|
293
|
+
baseSelector,
|
|
294
|
+
fields: fieldsValues.map(field => ({
|
|
295
|
+
name: field.name,
|
|
296
|
+
selector: field.selector,
|
|
297
|
+
type: field.fieldType,
|
|
298
|
+
attribute: field.attribute,
|
|
299
|
+
})),
|
|
300
|
+
};
|
|
301
|
+
const browserConfig = (0, utils_1.createBrowserConfig)(browserOptions);
|
|
302
|
+
const extractionStrategy = (0, utils_1.createCssSelectorExtractionStrategy)(schema);
|
|
303
|
+
const crawler = await (0, utils_1.getCrawl4aiClient)(this);
|
|
304
|
+
const result = await crawler.arun(url, {
|
|
305
|
+
browserConfig,
|
|
306
|
+
extractionStrategy,
|
|
307
|
+
cacheMode: options.cacheMode || 'enabled',
|
|
308
|
+
jsCode: browserOptions.jsCode,
|
|
309
|
+
});
|
|
310
|
+
const extractedData = (0, formatters_1.parseExtractedJson)(result);
|
|
311
|
+
const formattedResult = (0, formatters_1.formatExtractionResult)(result, extractedData, options.includeFullText);
|
|
312
|
+
if (options.cleanText === true && extractedData) {
|
|
313
|
+
formattedResult.data = (0, utils_1.cleanExtractedData)(extractedData);
|
|
314
|
+
}
|
|
315
|
+
allResults.push({
|
|
316
|
+
json: formattedResult,
|
|
317
|
+
pairedItem: { item: i },
|
|
318
|
+
});
|
|
319
|
+
}
|
|
320
|
+
catch (error) {
|
|
321
|
+
if (this.continueOnFail()) {
|
|
322
|
+
const node = this.getNode();
|
|
323
|
+
const errorItemIndex = (_a = error.itemIndex) !== null && _a !== void 0 ? _a : i;
|
|
324
|
+
allResults.push({
|
|
325
|
+
json: items[i].json,
|
|
326
|
+
error: new n8n_workflow_1.NodeOperationError(node, error.message, { itemIndex: errorItemIndex }),
|
|
327
|
+
pairedItem: { item: i },
|
|
328
|
+
});
|
|
329
|
+
continue;
|
|
330
|
+
}
|
|
331
|
+
throw error;
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
return allResults;
|
|
335
|
+
}
|
|
336
|
+
//# sourceMappingURL=cssExtractor.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cssExtractor.operation.js","sourceRoot":"","sources":["../../../../nodes/Crawl4aiContentExtractor/actions/cssExtractor.operation.ts"],"names":[],"mappings":";;;AA8RA,0BAoGC;AA5XD,+CAAkD;AAIlD,4CAM0B;AAC1B,8EAGuD;AAG1C,QAAA,WAAW,GAAsB;IAC5C;QACE,WAAW,EAAE,KAAK;QAClB,IAAI,EAAE,KAAK;QACX,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,qBAAqB;QAClC,WAAW,EAAE,iCAAiC;QAC9C,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,SAAS,EAAE,CAAC,cAAc,CAAC;aAC5B;SACF;KACF;IACD;QACE,WAAW,EAAE,eAAe;QAC5B,IAAI,EAAE,cAAc;QACpB,IAAI,EAAE,QA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C,CAAC,IAAI;oBACnB,KAAK,EAAE,IAAI,iCAAkB,CAAC,IAAI,EAAG,KAAe,CAAC,OAAO,EAAE,EAAE,SAAS,EAAE,cAAc,EAAE,CAAC;oBAC5F,UAAU,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE;iBACxB,CAAC,CAAC;gBACH,SAAS;YACX,CAAC;YAED,MAAM,KAAK,CAAC;QACd,CAAC;IACH,CAAC;IAED,OAAO,UAAU,CAAC;AACpB,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { IExecuteFunctions, INodeExecutionData, INodeProperties } from 'n8n-workflow';
|
|
2
|
+
import type { Crawl4aiNodeOptions } from '../helpers/interfaces';
|
|
3
|
+
export declare const description: INodeProperties[];
|
|
4
|
+
export declare function execute(this: IExecuteFunctions, items: INodeExecutionData[], nodeOptions: Crawl4aiNodeOptions): Promise<INodeExecutionData[]>;
|