UNPKG

n8n-nodes-brightdata

Version:

Community node to work with BrightData service for scraping purposes

62 lines 2.11 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.BrightData = void 0; const WebUnlockerDescription_1 = require("./WebUnlockerDescription"); const SearchFunctions_1 = require("./SearchFunctions"); class BrightData { constructor() { this.description = { displayName: 'BrightData', name: 'brightData', icon: 'file:brightdatasquared.svg', group: ['transform'], version: 1, subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}', description: 'Interact with BrightData API', defaults: { name: 'BrightData', }, inputs: ['main'], outputs: ['main'], credentials: [ { name: 'brightdataApi', required: false, }, ], requestDefaults: { baseURL: 'https://api.brightdata.com', url: '', headers: { Accept: 'application/json', 'Content-Type': 'application/json', }, }, properties: [ { displayName: 'Resource', name: 'resource', type: 'options', noDataExpression: true, options: [ { name: 'Web Unlocker', value: 'webUnlocker', }, ], default: 'webUnlocker', }, ...WebUnlockerDescription_1.webUnlockerOperations, ...WebUnlockerDescription_1.webUnlockerFields, ], }; this.methods = { listSearch: { getActiveZones: SearchFunctions_1.getActiveZones, getCountries: SearchFunctions_1.getCountries, }, }; } } exports.BrightData = BrightData; //# sourceMappingURL=BrightData.node.js.map