n8n-nodes-crawl4ai-onuro 0.2.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.
Files changed (71) hide show
  1. package/LICENSE +21 -0
  2. package/LICENSE.md +19 -0
  3. package/README.md +129 -0
  4. package/dist/credentials/Crawl4aiApi.credentials.d.ts +7 -0
  5. package/dist/credentials/Crawl4aiApi.credentials.js +228 -0
  6. package/dist/credentials/Crawl4aiApi.credentials.js.map +1 -0
  7. package/dist/nodes/Crawl4aiBasicCrawler/Crawl4aiBasicCrawler.node.d.ts +5 -0
  8. package/dist/nodes/Crawl4aiBasicCrawler/Crawl4aiBasicCrawler.node.js +37 -0
  9. package/dist/nodes/Crawl4aiBasicCrawler/Crawl4aiBasicCrawler.node.js.map +1 -0
  10. package/dist/nodes/Crawl4aiBasicCrawler/actions/crawlMultipleUrls.operation.d.ts +4 -0
  11. package/dist/nodes/Crawl4aiBasicCrawler/actions/crawlMultipleUrls.operation.js +421 -0
  12. package/dist/nodes/Crawl4aiBasicCrawler/actions/crawlMultipleUrls.operation.js.map +1 -0
  13. package/dist/nodes/Crawl4aiBasicCrawler/actions/crawlSingleUrl.operation.d.ts +4 -0
  14. package/dist/nodes/Crawl4aiBasicCrawler/actions/crawlSingleUrl.operation.js +422 -0
  15. package/dist/nodes/Crawl4aiBasicCrawler/actions/crawlSingleUrl.operation.js.map +1 -0
  16. package/dist/nodes/Crawl4aiBasicCrawler/actions/operations.d.ts +8 -0
  17. package/dist/nodes/Crawl4aiBasicCrawler/actions/operations.js +67 -0
  18. package/dist/nodes/Crawl4aiBasicCrawler/actions/operations.js.map +1 -0
  19. package/dist/nodes/Crawl4aiBasicCrawler/actions/processRawHtml.operation.d.ts +4 -0
  20. package/dist/nodes/Crawl4aiBasicCrawler/actions/processRawHtml.operation.js +148 -0
  21. package/dist/nodes/Crawl4aiBasicCrawler/actions/processRawHtml.operation.js.map +1 -0
  22. package/dist/nodes/Crawl4aiBasicCrawler/actions/router.d.ts +2 -0
  23. package/dist/nodes/Crawl4aiBasicCrawler/actions/router.js +37 -0
  24. package/dist/nodes/Crawl4aiBasicCrawler/actions/router.js.map +1 -0
  25. package/dist/nodes/Crawl4aiBasicCrawler/crawl4ai.svg +6 -0
  26. package/dist/nodes/Crawl4aiBasicCrawler/helpers/apiClient.d.ts +15 -0
  27. package/dist/nodes/Crawl4aiBasicCrawler/helpers/apiClient.js +271 -0
  28. package/dist/nodes/Crawl4aiBasicCrawler/helpers/apiClient.js.map +1 -0
  29. package/dist/nodes/Crawl4aiBasicCrawler/helpers/formatters.d.ts +5 -0
  30. package/dist/nodes/Crawl4aiBasicCrawler/helpers/formatters.js +96 -0
  31. package/dist/nodes/Crawl4aiBasicCrawler/helpers/formatters.js.map +1 -0
  32. package/dist/nodes/Crawl4aiBasicCrawler/helpers/interfaces.d.ts +119 -0
  33. package/dist/nodes/Crawl4aiBasicCrawler/helpers/interfaces.js +3 -0
  34. package/dist/nodes/Crawl4aiBasicCrawler/helpers/interfaces.js.map +1 -0
  35. package/dist/nodes/Crawl4aiBasicCrawler/helpers/utils.d.ts +8 -0
  36. package/dist/nodes/Crawl4aiBasicCrawler/helpers/utils.js +80 -0
  37. package/dist/nodes/Crawl4aiBasicCrawler/helpers/utils.js.map +1 -0
  38. package/dist/nodes/Crawl4aiContentExtractor/Crawl4aiContentExtractor.node.d.ts +5 -0
  39. package/dist/nodes/Crawl4aiContentExtractor/Crawl4aiContentExtractor.node.js +38 -0
  40. package/dist/nodes/Crawl4aiContentExtractor/Crawl4aiContentExtractor.node.js.map +1 -0
  41. package/dist/nodes/Crawl4aiContentExtractor/actions/cssExtractor.operation.d.ts +4 -0
  42. package/dist/nodes/Crawl4aiContentExtractor/actions/cssExtractor.operation.js +295 -0
  43. package/dist/nodes/Crawl4aiContentExtractor/actions/cssExtractor.operation.js.map +1 -0
  44. package/dist/nodes/Crawl4aiContentExtractor/actions/jsonExtractor.operation.d.ts +4 -0
  45. package/dist/nodes/Crawl4aiContentExtractor/actions/jsonExtractor.operation.js +328 -0
  46. package/dist/nodes/Crawl4aiContentExtractor/actions/jsonExtractor.operation.js.map +1 -0
  47. package/dist/nodes/Crawl4aiContentExtractor/actions/llmExtractor.operation.d.ts +4 -0
  48. package/dist/nodes/Crawl4aiContentExtractor/actions/llmExtractor.operation.js +417 -0
  49. package/dist/nodes/Crawl4aiContentExtractor/actions/llmExtractor.operation.js.map +1 -0
  50. package/dist/nodes/Crawl4aiContentExtractor/actions/operations.d.ts +8 -0
  51. package/dist/nodes/Crawl4aiContentExtractor/actions/operations.js +67 -0
  52. package/dist/nodes/Crawl4aiContentExtractor/actions/operations.js.map +1 -0
  53. package/dist/nodes/Crawl4aiContentExtractor/actions/router.d.ts +2 -0
  54. package/dist/nodes/Crawl4aiContentExtractor/actions/router.js +37 -0
  55. package/dist/nodes/Crawl4aiContentExtractor/actions/router.js.map +1 -0
  56. package/dist/nodes/Crawl4aiContentExtractor/crawl4ai.svg +6 -0
  57. package/dist/nodes/Crawl4aiContentExtractor/helpers/apiClient.d.ts +1 -0
  58. package/dist/nodes/Crawl4aiContentExtractor/helpers/apiClient.js +7 -0
  59. package/dist/nodes/Crawl4aiContentExtractor/helpers/apiClient.js.map +1 -0
  60. package/dist/nodes/Crawl4aiContentExtractor/helpers/formatters.d.ts +1 -0
  61. package/dist/nodes/Crawl4aiContentExtractor/helpers/formatters.js +8 -0
  62. package/dist/nodes/Crawl4aiContentExtractor/helpers/formatters.js.map +1 -0
  63. package/dist/nodes/Crawl4aiContentExtractor/helpers/interfaces.d.ts +1 -0
  64. package/dist/nodes/Crawl4aiContentExtractor/helpers/interfaces.js +3 -0
  65. package/dist/nodes/Crawl4aiContentExtractor/helpers/interfaces.js.map +1 -0
  66. package/dist/nodes/Crawl4aiContentExtractor/helpers/utils.d.ts +9 -0
  67. package/dist/nodes/Crawl4aiContentExtractor/helpers/utils.js +93 -0
  68. package/dist/nodes/Crawl4aiContentExtractor/helpers/utils.js.map +1 -0
  69. package/dist/tsconfig.tsbuildinfo +1 -0
  70. package/index.js +14 -0
  71. package/package.json +68 -0
@@ -0,0 +1,421 @@
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("../helpers/formatters");
8
+ exports.description = [
9
+ {
10
+ displayName: 'URLs',
11
+ name: 'urls',
12
+ type: 'string',
13
+ required: true,
14
+ default: '',
15
+ placeholder: 'https://example.com, https://example.org',
16
+ description: 'Comma-separated list of URLs to crawl',
17
+ displayOptions: {
18
+ show: {
19
+ operation: ['crawlMultipleUrls'],
20
+ },
21
+ },
22
+ },
23
+ {
24
+ displayName: 'Browser Options',
25
+ name: 'browserOptions',
26
+ type: 'collection',
27
+ placeholder: 'Add Option',
28
+ default: {},
29
+ displayOptions: {
30
+ show: {
31
+ operation: ['crawlMultipleUrls'],
32
+ },
33
+ },
34
+ options: [
35
+ {
36
+ displayName: 'Enable JavaScript',
37
+ name: 'javaScriptEnabled',
38
+ type: 'boolean',
39
+ default: true,
40
+ description: 'Whether to enable JavaScript execution',
41
+ },
42
+ {
43
+ displayName: 'Headless Mode',
44
+ name: 'headless',
45
+ type: 'boolean',
46
+ default: true,
47
+ description: 'Whether to run browser in headless mode',
48
+ },
49
+ {
50
+ displayName: 'Timeout (Ms)',
51
+ name: 'timeout',
52
+ type: 'number',
53
+ default: 30000,
54
+ description: 'Maximum time to wait for the browser to load the page',
55
+ },
56
+ {
57
+ displayName: 'User Agent',
58
+ name: 'userAgent',
59
+ type: 'string',
60
+ default: '',
61
+ placeholder: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) ...',
62
+ description: 'The user agent to use (leave empty for default)',
63
+ },
64
+ {
65
+ displayName: 'Viewport Height',
66
+ name: 'viewportHeight',
67
+ type: 'number',
68
+ default: 800,
69
+ description: 'The height of the browser viewport',
70
+ },
71
+ {
72
+ displayName: 'Viewport Width',
73
+ name: 'viewportWidth',
74
+ type: 'number',
75
+ default: 1280,
76
+ description: 'The width of the browser viewport',
77
+ },
78
+ ],
79
+ },
80
+ {
81
+ displayName: 'Crawler Options',
82
+ name: 'crawlerOptions',
83
+ type: 'collection',
84
+ placeholder: 'Add Option',
85
+ default: {},
86
+ displayOptions: {
87
+ show: {
88
+ operation: ['crawlMultipleUrls'],
89
+ },
90
+ },
91
+ options: [
92
+ {
93
+ displayName: 'Cache Mode',
94
+ name: 'cacheMode',
95
+ type: 'options',
96
+ options: [
97
+ {
98
+ name: 'Enabled (Read/Write)',
99
+ value: 'enabled',
100
+ description: 'Use cache if available, save new results to cache',
101
+ },
102
+ {
103
+ name: 'Bypass (Force Fresh)',
104
+ value: 'bypass',
105
+ description: 'Ignore cache, always fetch fresh content',
106
+ },
107
+ {
108
+ name: 'Only (Read Only)',
109
+ value: 'only',
110
+ description: 'Only use cache, do not make new requests',
111
+ },
112
+ ],
113
+ default: 'enabled',
114
+ description: 'How to use the cache when crawling',
115
+ },
116
+ {
117
+ displayName: 'Check Robots.txt',
118
+ name: 'checkRobotsTxt',
119
+ type: 'boolean',
120
+ default: false,
121
+ description: 'Whether to respect robots.txt rules',
122
+ },
123
+ {
124
+ displayName: 'CSS Selector',
125
+ name: 'cssSelector',
126
+ type: 'string',
127
+ default: '',
128
+ placeholder: 'article.content',
129
+ description: 'CSS selector to focus on specific content (leave empty for full page)',
130
+ },
131
+ {
132
+ displayName: 'Exclude External Links',
133
+ name: 'excludeExternalLinks',
134
+ type: 'boolean',
135
+ default: false,
136
+ description: 'Whether to exclude external links from the result',
137
+ },
138
+ {
139
+ displayName: 'Excluded Tags',
140
+ name: 'excludedTags',
141
+ type: 'string',
142
+ default: '',
143
+ placeholder: 'nav,footer,aside',
144
+ description: 'Comma-separated list of HTML tags to exclude from processing',
145
+ },
146
+ {
147
+ displayName: 'Max Retries',
148
+ name: 'maxRetries',
149
+ type: 'number',
150
+ default: 3,
151
+ description: 'Maximum number of retries for failed requests',
152
+ },
153
+ {
154
+ displayName: 'Page Timeout (Ms)',
155
+ name: 'pageTimeout',
156
+ type: 'number',
157
+ default: 30000,
158
+ description: 'Maximum time to wait for the page to load',
159
+ },
160
+ {
161
+ displayName: 'Request Timeout (Ms)',
162
+ name: 'requestTimeout',
163
+ type: 'number',
164
+ default: 30000,
165
+ description: 'Maximum time to wait for network requests',
166
+ },
167
+ {
168
+ displayName: 'Stream Results',
169
+ name: 'streamEnabled',
170
+ type: 'boolean',
171
+ default: false,
172
+ description: 'Whether to stream results as they become available',
173
+ },
174
+ {
175
+ displayName: 'Word Count Threshold',
176
+ name: 'wordCountThreshold',
177
+ type: 'number',
178
+ default: 0,
179
+ description: 'Minimum number of words for content to be included',
180
+ },
181
+ {
182
+ displayName: 'Exclude Domains',
183
+ name: 'excludeDomains',
184
+ type: 'string',
185
+ default: '',
186
+ placeholder: 'ads.example.com,tracker.example.com',
187
+ description: 'Comma-separated list of domains to exclude from links',
188
+ },
189
+ {
190
+ displayName: 'Exclude External Images',
191
+ name: 'excludeExternalImages',
192
+ type: 'boolean',
193
+ default: false,
194
+ description: 'Whether to exclude images not hosted on the same domain',
195
+ },
196
+ {
197
+ displayName: 'Exclude Internal Links',
198
+ name: 'excludeInternalLinks',
199
+ type: 'boolean',
200
+ default: false,
201
+ description: 'Whether to exclude links pointing to the same domain',
202
+ },
203
+ {
204
+ displayName: 'Exclude Social Media Links',
205
+ name: 'excludeSocialMediaLinks',
206
+ type: 'boolean',
207
+ default: false,
208
+ description: 'Whether to remove links to social media platforms',
209
+ },
210
+ {
211
+ displayName: 'Process Iframes',
212
+ name: 'processIframes',
213
+ type: 'boolean',
214
+ default: false,
215
+ description: 'Whether to extract content from embedded iframes',
216
+ },
217
+ {
218
+ displayName: 'Remove Overlay Elements',
219
+ name: 'removeOverlayElements',
220
+ type: 'boolean',
221
+ default: false,
222
+ description: 'Whether to remove popups, modals, and cookie banners',
223
+ },
224
+ {
225
+ displayName: 'Target Elements',
226
+ name: 'targetElements',
227
+ type: 'string',
228
+ default: '',
229
+ placeholder: 'article.content,div.main',
230
+ description: 'Comma-separated CSS selectors for focused extraction',
231
+ },
232
+ ],
233
+ },
234
+ {
235
+ displayName: 'LLM Extraction',
236
+ name: 'llmExtraction',
237
+ type: 'collection',
238
+ placeholder: 'Add LLM Option',
239
+ default: {},
240
+ displayOptions: {
241
+ show: {
242
+ operation: ['crawlMultipleUrls'],
243
+ },
244
+ },
245
+ options: [
246
+ {
247
+ displayName: 'LLM Provider',
248
+ name: 'provider',
249
+ type: 'options',
250
+ options: [
251
+ { name: 'DeepSeek', value: 'deepseek' },
252
+ { name: 'OpenAI', value: 'openai' },
253
+ { name: 'Anthropic', value: 'anthropic' },
254
+ { name: 'Ollama (Local)', value: 'ollama' },
255
+ ],
256
+ default: 'deepseek',
257
+ description: 'The LLM provider to use for extraction',
258
+ },
259
+ {
260
+ displayName: 'API Key',
261
+ name: 'apiKey',
262
+ type: 'string',
263
+ typeOptions: { password: true },
264
+ default: '',
265
+ description: 'API key for the LLM provider',
266
+ },
267
+ {
268
+ displayName: 'Base URL',
269
+ name: 'baseUrl',
270
+ type: 'string',
271
+ default: '',
272
+ placeholder: 'https://api.deepseek.com/v1',
273
+ description: 'Base URL for the LLM API (required for DeepSeek/Ollama)',
274
+ },
275
+ {
276
+ displayName: 'Extraction Instruction',
277
+ name: 'instruction',
278
+ type: 'string',
279
+ typeOptions: { rows: 3 },
280
+ default: '',
281
+ placeholder: 'Extract all product names and prices from this page',
282
+ description: 'Instructions for the LLM on what to extract',
283
+ },
284
+ {
285
+ displayName: 'Schema (JSON)',
286
+ name: 'schema',
287
+ type: 'string',
288
+ typeOptions: { rows: 4 },
289
+ default: '',
290
+ placeholder: '{"type": "object", "properties": {"title": {"type": "string"}}}',
291
+ description: 'Optional JSON schema for structured output',
292
+ },
293
+ ],
294
+ },
295
+ {
296
+ displayName: 'Options',
297
+ name: 'options',
298
+ type: 'collection',
299
+ placeholder: 'Add Option',
300
+ default: {},
301
+ displayOptions: {
302
+ show: {
303
+ operation: ['crawlMultipleUrls'],
304
+ },
305
+ },
306
+ options: [
307
+ {
308
+ displayName: 'Output Format',
309
+ name: 'outputFormat',
310
+ type: 'options',
311
+ options: [
312
+ {
313
+ name: 'Markdown',
314
+ value: 'markdown',
315
+ description: 'Clean markdown format (default, best for LLMs)',
316
+ },
317
+ {
318
+ name: 'Fit Markdown',
319
+ value: 'fitMarkdown',
320
+ description: 'Shorter markdown optimized for LLM token limits',
321
+ },
322
+ {
323
+ name: 'Plain Text',
324
+ value: 'text',
325
+ description: 'Plain text with no formatting',
326
+ },
327
+ {
328
+ name: 'Cleaned HTML',
329
+ value: 'cleanedHtml',
330
+ description: 'Cleaned HTML with unnecessary elements removed',
331
+ },
332
+ {
333
+ name: 'Raw HTML',
334
+ value: 'html',
335
+ description: 'Original raw HTML from the page',
336
+ },
337
+ ],
338
+ default: 'markdown',
339
+ description: 'Format for the content output',
340
+ },
341
+ {
342
+ displayName: 'Include Media Data',
343
+ name: 'includeMedia',
344
+ type: 'boolean',
345
+ default: false,
346
+ description: 'Whether to include media data in output (images, videos)',
347
+ },
348
+ {
349
+ displayName: 'Verbose Response',
350
+ name: 'verboseResponse',
351
+ type: 'boolean',
352
+ default: false,
353
+ description: 'Whether to include detailed data in output (HTML, status codes, etc.)',
354
+ },
355
+ {
356
+ displayName: 'Max Concurrent Crawls',
357
+ name: 'maxConcurrent',
358
+ type: 'number',
359
+ default: 5,
360
+ description: 'Maximum number of concurrent crawls',
361
+ },
362
+ ],
363
+ },
364
+ ];
365
+ async function execute(items, nodeOptions) {
366
+ var _a;
367
+ const allResults = [];
368
+ for (let i = 0; i < items.length; i++) {
369
+ try {
370
+ const urlsString = this.getNodeParameter('urls', i, '');
371
+ const browserOptions = this.getNodeParameter('browserOptions', i, {});
372
+ const crawlerOptions = this.getNodeParameter('crawlerOptions', i, {});
373
+ const llmExtraction = this.getNodeParameter('llmExtraction', i, {});
374
+ const options = this.getNodeParameter('options', i, {});
375
+ if (!urlsString) {
376
+ throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'URLs cannot be empty.', { itemIndex: i });
377
+ }
378
+ const urls = urlsString
379
+ .split(',')
380
+ .map(url => url.trim())
381
+ .filter(url => url);
382
+ if (urls.length === 0) {
383
+ throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'No valid URLs provided.', { itemIndex: i });
384
+ }
385
+ const invalidUrls = urls.filter(url => !(0, utils_1.isValidUrl)(url));
386
+ if (invalidUrls.length > 0) {
387
+ throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Invalid URLs: ${invalidUrls.join(', ')}`, { itemIndex: i });
388
+ }
389
+ const browserConfig = (0, utils_1.createBrowserConfig)(browserOptions);
390
+ const crawlerConfig = (0, utils_1.createCrawlerRunConfig)({
391
+ ...crawlerOptions,
392
+ ...browserConfig,
393
+ maxConcurrent: options.maxConcurrent ? Number(options.maxConcurrent) : 5,
394
+ });
395
+ const crawler = await (0, utils_1.getCrawl4aiClient)(this);
396
+ const results = await crawler.crawlMultipleUrls(urls, crawlerConfig, llmExtraction);
397
+ for (const result of results) {
398
+ const formattedResult = (0, formatters_1.formatCrawlResult)(result, options.includeMedia, options.verboseResponse, options.outputFormat || 'markdown');
399
+ allResults.push({
400
+ json: formattedResult,
401
+ pairedItem: { item: i },
402
+ });
403
+ }
404
+ }
405
+ catch (error) {
406
+ if (this.continueOnFail()) {
407
+ const node = this.getNode();
408
+ const errorItemIndex = (_a = error.itemIndex) !== null && _a !== void 0 ? _a : i;
409
+ allResults.push({
410
+ json: items[i].json,
411
+ error: new n8n_workflow_1.NodeOperationError(node, error.message, { itemIndex: errorItemIndex }),
412
+ pairedItem: { item: i },
413
+ });
414
+ continue;
415
+ }
416
+ throw error;
417
+ }
418
+ }
419
+ return allResults;
420
+ }
421
+ //# sourceMappingURL=crawlMultipleUrls.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"crawlMultipleUrls.operation.js","source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AC;gBAC5B,MAAM,cAAc,GAAG,MAAC,KAAa,CAAC,SAAS,mCAAI,CAAC,CAAC;gBACrD,UAAU,CAAC,IAAI,CAAC;oBACd,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,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[]>;