octoparse-cli 0.1.14
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/README.md +271 -0
- package/RUNTIME_SECURITY_NOTICE.txt +41 -0
- package/SECURITY.md +24 -0
- package/dist/cli/args.js +34 -0
- package/dist/cli/help.js +214 -0
- package/dist/cli/output.js +39 -0
- package/dist/commands/auth.js +283 -0
- package/dist/commands/capabilities.js +118 -0
- package/dist/commands/cloud.js +241 -0
- package/dist/commands/data.js +220 -0
- package/dist/commands/doctor.js +73 -0
- package/dist/commands/env.js +63 -0
- package/dist/commands/local.js +251 -0
- package/dist/commands/run.js +622 -0
- package/dist/commands/runs.js +171 -0
- package/dist/commands/task.js +101 -0
- package/dist/index.js +133 -0
- package/dist/runtime/account-capabilities.js +71 -0
- package/dist/runtime/api-client.js +290 -0
- package/dist/runtime/artifacts.js +33 -0
- package/dist/runtime/auth.js +94 -0
- package/dist/runtime/bridge-hub.js +173 -0
- package/dist/runtime/client-headers.js +23 -0
- package/dist/runtime/cloud-data.js +75 -0
- package/dist/runtime/config.js +48 -0
- package/dist/runtime/data-exporter.js +267 -0
- package/dist/runtime/engine-host.js +449 -0
- package/dist/runtime/local-runs.js +92 -0
- package/dist/runtime/naming.js +13 -0
- package/dist/runtime/run-control.js +363 -0
- package/dist/runtime/run-services.js +380 -0
- package/dist/runtime/security-notice.js +78 -0
- package/dist/runtime/task-definition-provider.js +282 -0
- package/dist/types.js +4 -0
- package/examples/minimal-task.json +6 -0
- package/examples/navigate-example-task.json +6 -0
- package/node_modules/@octopus/bpmn/index.js +3 -0
- package/node_modules/@octopus/bpmn/lib/Context.js +245 -0
- package/node_modules/@octopus/bpmn/lib/Definition.js +258 -0
- package/node_modules/@octopus/bpmn/lib/Engine.js +275 -0
- package/node_modules/@octopus/bpmn/lib/PrematureStopError.js +7 -0
- package/node_modules/@octopus/bpmn/lib/activities/Activity.js +202 -0
- package/node_modules/@octopus/bpmn/lib/activities/BaseProcess.js +308 -0
- package/node_modules/@octopus/bpmn/lib/activities/BaseTask.js +145 -0
- package/node_modules/@octopus/bpmn/lib/activities/BoundaryEvent.js +12 -0
- package/node_modules/@octopus/bpmn/lib/activities/Dummy.js +10 -0
- package/node_modules/@octopus/bpmn/lib/activities/EventDefinition.js +99 -0
- package/node_modules/@octopus/bpmn/lib/activities/Flow.js +52 -0
- package/node_modules/@octopus/bpmn/lib/activities/Form.js +67 -0
- package/node_modules/@octopus/bpmn/lib/activities/InputOutput.js +53 -0
- package/node_modules/@octopus/bpmn/lib/activities/IntermediateCatchEvent.js +12 -0
- package/node_modules/@octopus/bpmn/lib/activities/MessageFlow.js +19 -0
- package/node_modules/@octopus/bpmn/lib/activities/MultiInstanceLoopCharacteristics.js +160 -0
- package/node_modules/@octopus/bpmn/lib/activities/Properties.js +27 -0
- package/node_modules/@octopus/bpmn/lib/activities/SequenceFlow.js +56 -0
- package/node_modules/@octopus/bpmn/lib/activities/ServiceConnector.js +71 -0
- package/node_modules/@octopus/bpmn/lib/context-helper.js +198 -0
- package/node_modules/@octopus/bpmn/lib/events/EndEvent.js +22 -0
- package/node_modules/@octopus/bpmn/lib/events/ErrorEvent.js +41 -0
- package/node_modules/@octopus/bpmn/lib/events/MessageEvent.js +19 -0
- package/node_modules/@octopus/bpmn/lib/events/StartEvent.js +55 -0
- package/node_modules/@octopus/bpmn/lib/events/TimerEvent.js +75 -0
- package/node_modules/@octopus/bpmn/lib/expressions.js +41 -0
- package/node_modules/@octopus/bpmn/lib/gateways/ExclusiveGateway.js +86 -0
- package/node_modules/@octopus/bpmn/lib/gateways/InclusiveGateway.js +56 -0
- package/node_modules/@octopus/bpmn/lib/gateways/ParallelGateway.js +195 -0
- package/node_modules/@octopus/bpmn/lib/getPropertyValue.js +83 -0
- package/node_modules/@octopus/bpmn/lib/index.js +6 -0
- package/node_modules/@octopus/bpmn/lib/mapper.js +55 -0
- package/node_modules/@octopus/bpmn/lib/parameter.js +119 -0
- package/node_modules/@octopus/bpmn/lib/script-helper.js +45 -0
- package/node_modules/@octopus/bpmn/lib/tasks/ManualTask.js +31 -0
- package/node_modules/@octopus/bpmn/lib/tasks/ReceiveTask.js +31 -0
- package/node_modules/@octopus/bpmn/lib/tasks/ScriptTask.js +35 -0
- package/node_modules/@octopus/bpmn/lib/tasks/SendTask.js +16 -0
- package/node_modules/@octopus/bpmn/lib/tasks/ServiceTask.js +68 -0
- package/node_modules/@octopus/bpmn/lib/tasks/SubProcess.js +17 -0
- package/node_modules/@octopus/bpmn/lib/tasks/Task.js +16 -0
- package/node_modules/@octopus/bpmn/lib/tasks/UserTask.js +47 -0
- package/node_modules/@octopus/bpmn/lib/transformer.js +13 -0
- package/node_modules/@octopus/bpmn/lib/validation.js +111 -0
- package/node_modules/@octopus/bpmn/package.json +17 -0
- package/node_modules/@octopus/bpmn/types/bpmn.d.ts +85 -0
- package/node_modules/@octopus/engine/README.md +370 -0
- package/node_modules/@octopus/engine/dist/actions/BackPreWebPageAction.d.ts +4 -0
- package/node_modules/@octopus/engine/dist/actions/BackPreWebPageAction.js +1 -0
- package/node_modules/@octopus/engine/dist/actions/BaseAction.d.ts +339 -0
- package/node_modules/@octopus/engine/dist/actions/BaseAction.js +1559 -0
- package/node_modules/@octopus/engine/dist/actions/BranchAction.d.ts +9 -0
- package/node_modules/@octopus/engine/dist/actions/BranchAction.js +1 -0
- package/node_modules/@octopus/engine/dist/actions/ClickAction.d.ts +22 -0
- package/node_modules/@octopus/engine/dist/actions/ClickAction.js +1 -0
- package/node_modules/@octopus/engine/dist/actions/ConditionAction.d.ts +4 -0
- package/node_modules/@octopus/engine/dist/actions/ConditionAction.js +1 -0
- package/node_modules/@octopus/engine/dist/actions/EmptyAction.d.ts +4 -0
- package/node_modules/@octopus/engine/dist/actions/EmptyAction.js +12 -0
- package/node_modules/@octopus/engine/dist/actions/EnterCaptchaAction.d.ts +28 -0
- package/node_modules/@octopus/engine/dist/actions/EnterCaptchaAction.js +1 -0
- package/node_modules/@octopus/engine/dist/actions/EnterTextAction.d.ts +20 -0
- package/node_modules/@octopus/engine/dist/actions/EnterTextAction.js +1 -0
- package/node_modules/@octopus/engine/dist/actions/ExtractDataAction.d.ts +40 -0
- package/node_modules/@octopus/engine/dist/actions/ExtractDataAction.js +1 -0
- package/node_modules/@octopus/engine/dist/actions/LoopAction.d.ts +41 -0
- package/node_modules/@octopus/engine/dist/actions/LoopAction.js +526 -0
- package/node_modules/@octopus/engine/dist/actions/LoopStartAction.d.ts +47 -0
- package/node_modules/@octopus/engine/dist/actions/LoopStartAction.js +607 -0
- package/node_modules/@octopus/engine/dist/actions/MouseOverAction.d.ts +8 -0
- package/node_modules/@octopus/engine/dist/actions/MouseOverAction.js +34 -0
- package/node_modules/@octopus/engine/dist/actions/NavigateAction.d.ts +38 -0
- package/node_modules/@octopus/engine/dist/actions/NavigateAction.js +535 -0
- package/node_modules/@octopus/engine/dist/actions/SwitchComboAction.d.ts +13 -0
- package/node_modules/@octopus/engine/dist/actions/SwitchComboAction.js +69 -0
- package/node_modules/@octopus/engine/dist/browser.d.ts +17 -0
- package/node_modules/@octopus/engine/dist/browser.js +157 -0
- package/node_modules/@octopus/engine/dist/browserProxy.d.ts +90 -0
- package/node_modules/@octopus/engine/dist/browserProxy.js +1 -0
- package/node_modules/@octopus/engine/dist/configs/BaseConfig.d.ts +20 -0
- package/node_modules/@octopus/engine/dist/configs/BaseConfig.js +88 -0
- package/node_modules/@octopus/engine/dist/configs/BranchConfig.d.ts +7 -0
- package/node_modules/@octopus/engine/dist/configs/BranchConfig.js +1 -0
- package/node_modules/@octopus/engine/dist/configs/ClickConfig.d.ts +36 -0
- package/node_modules/@octopus/engine/dist/configs/ClickConfig.js +65 -0
- package/node_modules/@octopus/engine/dist/configs/EnterCaptchaConfig.d.ts +19 -0
- package/node_modules/@octopus/engine/dist/configs/EnterCaptchaConfig.js +25 -0
- package/node_modules/@octopus/engine/dist/configs/EnterTextConfig.d.ts +24 -0
- package/node_modules/@octopus/engine/dist/configs/EnterTextConfig.js +36 -0
- package/node_modules/@octopus/engine/dist/configs/ExtractDataConfig.d.ts +12 -0
- package/node_modules/@octopus/engine/dist/configs/ExtractDataConfig.js +1 -0
- package/node_modules/@octopus/engine/dist/configs/LoopConfig.d.ts +25 -0
- package/node_modules/@octopus/engine/dist/configs/LoopConfig.js +40 -0
- package/node_modules/@octopus/engine/dist/configs/LoopStartConfig.d.ts +4 -0
- package/node_modules/@octopus/engine/dist/configs/LoopStartConfig.js +12 -0
- package/node_modules/@octopus/engine/dist/configs/MouseOverConfig.d.ts +8 -0
- package/node_modules/@octopus/engine/dist/configs/MouseOverConfig.js +15 -0
- package/node_modules/@octopus/engine/dist/configs/NavigateConfig.d.ts +41 -0
- package/node_modules/@octopus/engine/dist/configs/NavigateConfig.js +121 -0
- package/node_modules/@octopus/engine/dist/configs/SwitchComboConfig.d.ts +8 -0
- package/node_modules/@octopus/engine/dist/configs/SwitchComboConfig.js +15 -0
- package/node_modules/@octopus/engine/dist/enums/index.d.ts +419 -0
- package/node_modules/@octopus/engine/dist/enums/index.js +314 -0
- package/node_modules/@octopus/engine/dist/extension/BrowserWebSocketTransport-D_zAGZMQ.js +1 -0
- package/node_modules/@octopus/engine/dist/extension/LaunchOptions-DxvePrV4.js +6 -0
- package/node_modules/@octopus/engine/dist/extension/NodeWebSocketTransport-BTgRVB7Z.js +6 -0
- package/node_modules/@octopus/engine/dist/extension/background.js +396 -0
- package/node_modules/@octopus/engine/dist/extension/bidi-C_GIZ8Uz.js +131 -0
- package/node_modules/@octopus/engine/dist/extension/manifest.json +27 -0
- package/node_modules/@octopus/engine/dist/extension/src/content/anti-detection.js +1 -0
- package/node_modules/@octopus/engine/dist/extension-bridge/BaseExtensionBridge.d.ts +21 -0
- package/node_modules/@octopus/engine/dist/extension-bridge/BaseExtensionBridge.js +117 -0
- package/node_modules/@octopus/engine/dist/extension-bridge/SessionExtensionBridge.d.ts +17 -0
- package/node_modules/@octopus/engine/dist/extension-bridge/SessionExtensionBridge.js +29 -0
- package/node_modules/@octopus/engine/dist/extension-bridge/index.d.ts +2 -0
- package/node_modules/@octopus/engine/dist/extension-bridge/index.js +5 -0
- package/node_modules/@octopus/engine/dist/extension-bridge/types.d.ts +159 -0
- package/node_modules/@octopus/engine/dist/extension-bridge/types.js +5 -0
- package/node_modules/@octopus/engine/dist/extensions/ublock-origin/uBlock0.chromium.tar.xz +0 -0
- package/node_modules/@octopus/engine/dist/extensions/ublock-origin-lite/uBOLite.chromium.tar.xz +0 -0
- package/node_modules/@octopus/engine/dist/index.d.ts +169 -0
- package/node_modules/@octopus/engine/dist/index.js +1 -0
- package/node_modules/@octopus/engine/dist/models/actionItem.d.ts +16 -0
- package/node_modules/@octopus/engine/dist/models/actionItem.js +15 -0
- package/node_modules/@octopus/engine/dist/models/conditionCheckArgs.d.ts +11 -0
- package/node_modules/@octopus/engine/dist/models/conditionCheckArgs.js +11 -0
- package/node_modules/@octopus/engine/dist/models/customizeCookie.d.ts +14 -0
- package/node_modules/@octopus/engine/dist/models/customizeCookie.js +6 -0
- package/node_modules/@octopus/engine/dist/models/downloadFileConfig.d.ts +17 -0
- package/node_modules/@octopus/engine/dist/models/downloadFileConfig.js +26 -0
- package/node_modules/@octopus/engine/dist/models/elementNotFoundArgs.d.ts +8 -0
- package/node_modules/@octopus/engine/dist/models/elementNotFoundArgs.js +12 -0
- package/node_modules/@octopus/engine/dist/models/elementNotFoundError.d.ts +2 -0
- package/node_modules/@octopus/engine/dist/models/elementNotFoundError.js +6 -0
- package/node_modules/@octopus/engine/dist/models/extractItem.d.ts +37 -0
- package/node_modules/@octopus/engine/dist/models/extractItem.js +35 -0
- package/node_modules/@octopus/engine/dist/models/extractTemplate.d.ts +11 -0
- package/node_modules/@octopus/engine/dist/models/extractTemplate.js +48 -0
- package/node_modules/@octopus/engine/dist/models/extractTextItem.d.ts +10 -0
- package/node_modules/@octopus/engine/dist/models/extractTextItem.js +17 -0
- package/node_modules/@octopus/engine/dist/models/globalConfig.d.ts +5 -0
- package/node_modules/@octopus/engine/dist/models/globalConfig.js +1 -0
- package/node_modules/@octopus/engine/dist/models/httpHeader.d.ts +4 -0
- package/node_modules/@octopus/engine/dist/models/httpHeader.js +10 -0
- package/node_modules/@octopus/engine/dist/models/operation.d.ts +27 -0
- package/node_modules/@octopus/engine/dist/models/operation.js +242 -0
- package/node_modules/@octopus/engine/dist/models/retryCondition.d.ts +7 -0
- package/node_modules/@octopus/engine/dist/models/retryCondition.js +10 -0
- package/node_modules/@octopus/engine/dist/models/task.d.ts +89 -0
- package/node_modules/@octopus/engine/dist/models/task.js +120 -0
- package/node_modules/@octopus/engine/dist/models/trigger.d.ts +66 -0
- package/node_modules/@octopus/engine/dist/models/trigger.js +117 -0
- package/node_modules/@octopus/engine/dist/package.json +26 -0
- package/node_modules/@octopus/engine/dist/public-types.d.ts +13 -0
- package/node_modules/@octopus/engine/dist/public-types.js +2 -0
- package/node_modules/@octopus/engine/dist/settings.d.ts +41 -0
- package/node_modules/@octopus/engine/dist/settings.js +20 -0
- package/node_modules/@octopus/engine/dist/solvers/captcha/ClickCaptchaSolver.d.ts +6 -0
- package/node_modules/@octopus/engine/dist/solvers/captcha/ClickCaptchaSolver.js +1 -0
- package/node_modules/@octopus/engine/dist/solvers/captcha/HCaptchaSolver.d.ts +4 -0
- package/node_modules/@octopus/engine/dist/solvers/captcha/HCaptchaSolver.js +73 -0
- package/node_modules/@octopus/engine/dist/solvers/captcha/ImageCaptchaSolver.d.ts +2 -0
- package/node_modules/@octopus/engine/dist/solvers/captcha/ImageCaptchaSolver.js +74 -0
- package/node_modules/@octopus/engine/dist/solvers/captcha/RecaptchaSolver.d.ts +9 -0
- package/node_modules/@octopus/engine/dist/solvers/captcha/RecaptchaSolver.js +371 -0
- package/node_modules/@octopus/engine/dist/solvers/captcha/SliderCaptchaSolver.d.ts +6 -0
- package/node_modules/@octopus/engine/dist/solvers/captcha/SliderCaptchaSolver.js +184 -0
- package/node_modules/@octopus/engine/dist/solvers/captcha/SlidingTrajectory.d.ts +50 -0
- package/node_modules/@octopus/engine/dist/solvers/captcha/SlidingTrajectory.js +125 -0
- package/node_modules/@octopus/engine/dist/solvers/captcha/types.d.ts +68 -0
- package/node_modules/@octopus/engine/dist/solvers/captcha/types.js +34 -0
- package/node_modules/@octopus/engine/dist/solvers/captcha/utils.d.ts +2 -0
- package/node_modules/@octopus/engine/dist/solvers/captcha/utils.js +15 -0
- package/node_modules/@octopus/engine/dist/translator/actionFactory.d.ts +6 -0
- package/node_modules/@octopus/engine/dist/translator/actionFactory.js +1 -0
- package/node_modules/@octopus/engine/dist/translator/activityTypeEnum.d.ts +22 -0
- package/node_modules/@octopus/engine/dist/translator/activityTypeEnum.js +1 -0
- package/node_modules/@octopus/engine/dist/translator/backPreWebPageAction.d.ts +5 -0
- package/node_modules/@octopus/engine/dist/translator/backPreWebPageAction.js +1 -0
- package/node_modules/@octopus/engine/dist/translator/baseAction.d.ts +31 -0
- package/node_modules/@octopus/engine/dist/translator/baseAction.js +1 -0
- package/node_modules/@octopus/engine/dist/translator/breakActivity.d.ts +5 -0
- package/node_modules/@octopus/engine/dist/translator/breakActivity.js +1 -0
- package/node_modules/@octopus/engine/dist/translator/clickAction.d.ts +5 -0
- package/node_modules/@octopus/engine/dist/translator/clickAction.js +1 -0
- package/node_modules/@octopus/engine/dist/translator/completeWF.d.ts +5 -0
- package/node_modules/@octopus/engine/dist/translator/completeWF.js +1 -0
- package/node_modules/@octopus/engine/dist/translator/conditionAction.d.ts +6 -0
- package/node_modules/@octopus/engine/dist/translator/conditionAction.js +1 -0
- package/node_modules/@octopus/engine/dist/translator/emptyAction.d.ts +5 -0
- package/node_modules/@octopus/engine/dist/translator/emptyAction.js +1 -0
- package/node_modules/@octopus/engine/dist/translator/enterCapachaAction.d.ts +5 -0
- package/node_modules/@octopus/engine/dist/translator/enterCapachaAction.js +1 -0
- package/node_modules/@octopus/engine/dist/translator/enterTextAction.d.ts +5 -0
- package/node_modules/@octopus/engine/dist/translator/enterTextAction.js +1 -0
- package/node_modules/@octopus/engine/dist/translator/extractDataAction.d.ts +13 -0
- package/node_modules/@octopus/engine/dist/translator/extractDataAction.js +1 -0
- package/node_modules/@octopus/engine/dist/translator/loopAction.d.ts +5 -0
- package/node_modules/@octopus/engine/dist/translator/loopAction.js +1 -0
- package/node_modules/@octopus/engine/dist/translator/mouseOverAction.d.ts +5 -0
- package/node_modules/@octopus/engine/dist/translator/mouseOverAction.js +19 -0
- package/node_modules/@octopus/engine/dist/translator/navigateAction.d.ts +5 -0
- package/node_modules/@octopus/engine/dist/translator/navigateAction.js +117 -0
- package/node_modules/@octopus/engine/dist/translator/rootAction.d.ts +6 -0
- package/node_modules/@octopus/engine/dist/translator/rootAction.js +80 -0
- package/node_modules/@octopus/engine/dist/translator/switchCombo2Action.d.ts +5 -0
- package/node_modules/@octopus/engine/dist/translator/switchCombo2Action.js +19 -0
- package/node_modules/@octopus/engine/dist/translator/translator.d.ts +1 -0
- package/node_modules/@octopus/engine/dist/translator/translator.js +36 -0
- package/node_modules/@octopus/engine/dist/type.d.ts +25 -0
- package/node_modules/@octopus/engine/dist/type.js +2 -0
- package/node_modules/@octopus/engine/dist/types/browser.d.ts +191 -0
- package/node_modules/@octopus/engine/dist/types/browser.js +1 -0
- package/node_modules/@octopus/engine/dist/types/browserManager.d.ts +41 -0
- package/node_modules/@octopus/engine/dist/types/browserManager.js +1 -0
- package/node_modules/@octopus/engine/dist/types/index.d.ts +40 -0
- package/node_modules/@octopus/engine/dist/types/index.js +2 -0
- package/node_modules/@octopus/engine/dist/types/plugin.d.ts +29 -0
- package/node_modules/@octopus/engine/dist/types/plugin.js +2 -0
- package/node_modules/@octopus/engine/dist/utils/AsyncEmitter.d.ts +15 -0
- package/node_modules/@octopus/engine/dist/utils/AsyncEmitter.js +1 -0
- package/node_modules/@octopus/engine/dist/utils/DataStore.d.ts +58 -0
- package/node_modules/@octopus/engine/dist/utils/DataStore.js +1 -0
- package/node_modules/@octopus/engine/dist/utils/DateTimeFormatHelper.d.ts +22 -0
- package/node_modules/@octopus/engine/dist/utils/DateTimeFormatHelper.js +173 -0
- package/node_modules/@octopus/engine/dist/utils/FileDownloader.d.ts +108 -0
- package/node_modules/@octopus/engine/dist/utils/FileDownloader.js +1 -0
- package/node_modules/@octopus/engine/dist/utils/HttpRequester.d.ts +43 -0
- package/node_modules/@octopus/engine/dist/utils/HttpRequester.js +174 -0
- package/node_modules/@octopus/engine/dist/utils/JsonParser.d.ts +95 -0
- package/node_modules/@octopus/engine/dist/utils/JsonParser.js +439 -0
- package/node_modules/@octopus/engine/dist/utils/Operations.d.ts +27 -0
- package/node_modules/@octopus/engine/dist/utils/Operations.js +115 -0
- package/node_modules/@octopus/engine/dist/utils/index.d.ts +28 -0
- package/node_modules/@octopus/engine/dist/utils/index.js +356 -0
- package/node_modules/@octopus/engine/package.json +58 -0
- package/package.json +79 -0
- package/schemas/capabilities-v1.schema.json +234 -0
- package/schemas/detached-bootstrap-v1.schema.json +42 -0
- package/schemas/json-envelope-v1.schema.json +39 -0
- package/schemas/run-event-v1.schema.json +47 -0
|
@@ -0,0 +1,419 @@
|
|
|
1
|
+
/** 任务类型 */
|
|
2
|
+
export declare enum TaskType {
|
|
3
|
+
/** 自定义任务 */
|
|
4
|
+
Customize = 1,
|
|
5
|
+
/** 模板任务 */
|
|
6
|
+
Template = 10
|
|
7
|
+
}
|
|
8
|
+
export declare enum LogType {
|
|
9
|
+
Info = 0,
|
|
10
|
+
Error = 1,
|
|
11
|
+
Resource = 2,
|
|
12
|
+
DebugLogger = 3
|
|
13
|
+
}
|
|
14
|
+
export declare const RunnerStatus: {
|
|
15
|
+
readonly Completed: "completed";
|
|
16
|
+
readonly Stopped: "stopped";
|
|
17
|
+
};
|
|
18
|
+
export type RunnerStatus = (typeof RunnerStatus)[keyof typeof RunnerStatus];
|
|
19
|
+
export declare const LogKey: {
|
|
20
|
+
Common: {
|
|
21
|
+
BeforeWaitTime: string;
|
|
22
|
+
BeforeWaitXPath: string;
|
|
23
|
+
Retry: {
|
|
24
|
+
URL: {
|
|
25
|
+
Found: string;
|
|
26
|
+
NotFound: string;
|
|
27
|
+
};
|
|
28
|
+
Text: {
|
|
29
|
+
Found: string;
|
|
30
|
+
NotFound: string;
|
|
31
|
+
};
|
|
32
|
+
XPath: {
|
|
33
|
+
Found: string;
|
|
34
|
+
NotFound: string;
|
|
35
|
+
};
|
|
36
|
+
Success: string;
|
|
37
|
+
Failure: string;
|
|
38
|
+
};
|
|
39
|
+
SwitchIP: string;
|
|
40
|
+
ResourceSWitchIp: string;
|
|
41
|
+
SwitchUA: string;
|
|
42
|
+
Scroll: {
|
|
43
|
+
Global: {
|
|
44
|
+
Screen: string;
|
|
45
|
+
Bottom: string;
|
|
46
|
+
};
|
|
47
|
+
Local: {
|
|
48
|
+
Screen: string;
|
|
49
|
+
Bottom: string;
|
|
50
|
+
};
|
|
51
|
+
Finish: string;
|
|
52
|
+
};
|
|
53
|
+
Ajax: {
|
|
54
|
+
Action: string;
|
|
55
|
+
Success: string;
|
|
56
|
+
Failure: string;
|
|
57
|
+
};
|
|
58
|
+
RemoteControlTip: string;
|
|
59
|
+
};
|
|
60
|
+
Navigate: {
|
|
61
|
+
Begin: string;
|
|
62
|
+
BeginWithLoop: string;
|
|
63
|
+
ClearCache: {
|
|
64
|
+
Success: string;
|
|
65
|
+
Failure: string;
|
|
66
|
+
};
|
|
67
|
+
Cookies: {
|
|
68
|
+
Success: string;
|
|
69
|
+
Failure: string;
|
|
70
|
+
};
|
|
71
|
+
Goto: {
|
|
72
|
+
Loading: string;
|
|
73
|
+
Success: string;
|
|
74
|
+
Failure: string;
|
|
75
|
+
};
|
|
76
|
+
Error: {
|
|
77
|
+
Timeout: string;
|
|
78
|
+
NotFondURL: string;
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
Click: {
|
|
82
|
+
Begin: string;
|
|
83
|
+
NewWindow: {
|
|
84
|
+
Action: string;
|
|
85
|
+
Loading: string;
|
|
86
|
+
Success: string;
|
|
87
|
+
Failure: string;
|
|
88
|
+
};
|
|
89
|
+
Error: {
|
|
90
|
+
Timeout: string;
|
|
91
|
+
NotFound: string;
|
|
92
|
+
HrefInvalid: string;
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
ExtractData: {
|
|
96
|
+
Begin: string;
|
|
97
|
+
Success: string;
|
|
98
|
+
Trigger: {
|
|
99
|
+
NotSave: string;
|
|
100
|
+
BreakLoop: string;
|
|
101
|
+
EndWorkflow: string;
|
|
102
|
+
};
|
|
103
|
+
Error: {
|
|
104
|
+
Empty: string;
|
|
105
|
+
Trigger: {
|
|
106
|
+
NotFoundField: string;
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
Loop: {
|
|
111
|
+
Begin: {
|
|
112
|
+
FixedItem: string;
|
|
113
|
+
FixedList: string;
|
|
114
|
+
VarilableList: string;
|
|
115
|
+
URLList: string;
|
|
116
|
+
TextList: string;
|
|
117
|
+
Scroll: string;
|
|
118
|
+
};
|
|
119
|
+
Action: string;
|
|
120
|
+
Error: string;
|
|
121
|
+
Finish: string;
|
|
122
|
+
};
|
|
123
|
+
EnterText: {
|
|
124
|
+
Begin: string;
|
|
125
|
+
Action: string;
|
|
126
|
+
Enter: string;
|
|
127
|
+
Error: {
|
|
128
|
+
NotString: string;
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
MouseOver: {
|
|
132
|
+
Begin: string;
|
|
133
|
+
};
|
|
134
|
+
EnterCapacha: {
|
|
135
|
+
Begin: string;
|
|
136
|
+
Action: string;
|
|
137
|
+
Complete: string;
|
|
138
|
+
ResourceCpathca: string;
|
|
139
|
+
PhotoCpathca: string;
|
|
140
|
+
RecaptchaV2Cpathca: string;
|
|
141
|
+
RecaptchaV3Cpathca: string;
|
|
142
|
+
HcaptchaCpathca: string;
|
|
143
|
+
Error: {
|
|
144
|
+
Retry: string;
|
|
145
|
+
Distance: string;
|
|
146
|
+
ClickArea: string;
|
|
147
|
+
InputNotFound: string;
|
|
148
|
+
ImageNotFound: string;
|
|
149
|
+
TipImageNotFound: string;
|
|
150
|
+
HuaKuaiImageNotFound: string;
|
|
151
|
+
Captcha: string;
|
|
152
|
+
};
|
|
153
|
+
};
|
|
154
|
+
SwitchCombo: {
|
|
155
|
+
Begin: string;
|
|
156
|
+
};
|
|
157
|
+
BackPreWebPage: {
|
|
158
|
+
Begin: string;
|
|
159
|
+
};
|
|
160
|
+
Condition: {
|
|
161
|
+
Begin: string;
|
|
162
|
+
};
|
|
163
|
+
Branch: {
|
|
164
|
+
Begin: string;
|
|
165
|
+
Action: {
|
|
166
|
+
Allow: string;
|
|
167
|
+
Text: {
|
|
168
|
+
Normal: {
|
|
169
|
+
Success: string;
|
|
170
|
+
Failure: string;
|
|
171
|
+
};
|
|
172
|
+
Loop: {
|
|
173
|
+
Success: string;
|
|
174
|
+
Failure: string;
|
|
175
|
+
};
|
|
176
|
+
};
|
|
177
|
+
Element: {
|
|
178
|
+
Normal: {
|
|
179
|
+
Success: string;
|
|
180
|
+
Failure: string;
|
|
181
|
+
};
|
|
182
|
+
Loop: {
|
|
183
|
+
Success: string;
|
|
184
|
+
Failure: string;
|
|
185
|
+
};
|
|
186
|
+
};
|
|
187
|
+
};
|
|
188
|
+
};
|
|
189
|
+
GlobalCookies: {
|
|
190
|
+
Success: string;
|
|
191
|
+
Failure: string;
|
|
192
|
+
};
|
|
193
|
+
};
|
|
194
|
+
export declare const enum ActionType {
|
|
195
|
+
Empty = "EmptyAction",
|
|
196
|
+
Navigate = "NavigateAction",
|
|
197
|
+
Click = "ClickAction",
|
|
198
|
+
ExtractData = "ExtractDataAction",
|
|
199
|
+
Loop = "LoopAction",
|
|
200
|
+
LoopStart = "LoopAction.Start",
|
|
201
|
+
EnterText = "EnterTextAction",
|
|
202
|
+
MouseOver = "MouseOverAction",
|
|
203
|
+
EnterCaptcha = "EnterCapachaAction",
|
|
204
|
+
SwitchCombo = "SwitchCombo2Action",
|
|
205
|
+
Condition = "ConditionAction",
|
|
206
|
+
Branch = "BranchAction",
|
|
207
|
+
BackPreWebPage = "BackPreWebPageAction"
|
|
208
|
+
}
|
|
209
|
+
export declare const enum CheckType {
|
|
210
|
+
DoNotCheck = "DoNotCheck",
|
|
211
|
+
ContainText = "ContainText",
|
|
212
|
+
ContainItem = "ContainItem",
|
|
213
|
+
URLContain = "URLContain",
|
|
214
|
+
XPathContain = "XPathContain",
|
|
215
|
+
Multiple = "Multiple"
|
|
216
|
+
}
|
|
217
|
+
export declare const enum ScrollType {
|
|
218
|
+
ScrollToBottom = 0,
|
|
219
|
+
ScrollOneScreen = 1
|
|
220
|
+
}
|
|
221
|
+
export declare const enum ScrollScope {
|
|
222
|
+
AllDocument = 0,
|
|
223
|
+
Local = 1
|
|
224
|
+
}
|
|
225
|
+
export declare const enum RetryConditionType {
|
|
226
|
+
DoNotCheck = "DoNotCheck",
|
|
227
|
+
ContainText = "ContainText",
|
|
228
|
+
ContainItem = "ContainItem",
|
|
229
|
+
URLContain = "URLContain",
|
|
230
|
+
XPathContain = "XPathContain",
|
|
231
|
+
Multiple = "Multiple"
|
|
232
|
+
}
|
|
233
|
+
export declare const enum ActionTags {
|
|
234
|
+
FixedList = "xml:LoopAction.FixedList",
|
|
235
|
+
TextList = "xml:LoopAction.TextList",
|
|
236
|
+
URLList = "xml:LoopAction.URLList",
|
|
237
|
+
ExtractTemplate = "xml:ExtractDataAction.ExtractTemplate",
|
|
238
|
+
NavigateRetryConditions = "xml:NavigateAction.RetryConditions",
|
|
239
|
+
NavigateRequestHeaders = "xml:NavigateAction.RequestHeaders",
|
|
240
|
+
NavigateRetryUserAgent = "xml:NavigateAction.UserAgents",
|
|
241
|
+
ClickActionRetryConditions = "xml:ClickAction.RetryConditions",
|
|
242
|
+
ClickActionRequestHeaders = "xml:ClickAction.RequestHeaders",
|
|
243
|
+
ClickActionRetryUserAgent = "xml:ClickAction.UserAgents",
|
|
244
|
+
Operation = "xml:Operation",
|
|
245
|
+
Parameter = "xml:Parameter",
|
|
246
|
+
Trigger = "xml:ExtractDataAction.Triggers"
|
|
247
|
+
}
|
|
248
|
+
export declare enum CaptchaFailureElementType {
|
|
249
|
+
XPath = "XPath",
|
|
250
|
+
Text = "Text"
|
|
251
|
+
}
|
|
252
|
+
export declare const enum ExtractTextType {
|
|
253
|
+
ExtractText = "ExtractText",
|
|
254
|
+
ExtractHtml = "ExtractHtml",
|
|
255
|
+
ExtractHref = "ExtractHref",
|
|
256
|
+
ExtractPageURL = "ExtractPageURL",
|
|
257
|
+
ExtractPageSource = "ExtractPageSource",
|
|
258
|
+
ExtractSrc = "ExtractSrc",
|
|
259
|
+
ExtractPageTitle = "ExtractPageTitle",
|
|
260
|
+
ExtractValue = "ExtractValue",
|
|
261
|
+
GenerateFixedValue = "GenerateFixedValue",
|
|
262
|
+
ExtractAddTaskSourceUrl = "ExtractAddTaskSourceUrl",
|
|
263
|
+
GenerateCurrentDateTime = "GenerateCurrentDateTime",
|
|
264
|
+
ExtractOuterHtml = "ExtractOuterHtml",
|
|
265
|
+
ExtractOCR = "ExtractOCR",
|
|
266
|
+
ExtractSelectText = "ExtractSelectText",
|
|
267
|
+
ExtractCustomizeField = "ExtractCustomizeField",
|
|
268
|
+
/** 文件、视频、音频、文档类型 */
|
|
269
|
+
/** 视频音频地址因为可能是从video/audio标签上src获取的,也可能是a标签上href获取的 */
|
|
270
|
+
ExtractVideoSrc = "ExtractVideoSrc",
|
|
271
|
+
ExtractVideoHref = "ExtractVideoHref",
|
|
272
|
+
ExtractAudioSrc = "ExtractAudioSrc",
|
|
273
|
+
ExtractAudioHref = "ExtractAudioHref",
|
|
274
|
+
ExtractDocumentHref = "ExtractDocumentHref",
|
|
275
|
+
ExtractFileHref = "ExtractFileHref",
|
|
276
|
+
ExtractFileField = "ExtractFileField"
|
|
277
|
+
}
|
|
278
|
+
export declare const extractFunctions: Partial<Record<ExtractTextType, (ele: HTMLElement) => string>>;
|
|
279
|
+
export declare const enum LoopType {
|
|
280
|
+
FixedItem = "FixedItem",
|
|
281
|
+
FixedItemList = "FixedItemList",
|
|
282
|
+
VarilableItemList = "VarilableItemList",
|
|
283
|
+
URLList = "URLList",
|
|
284
|
+
TextList = "TextList",
|
|
285
|
+
ScrollWeb = "ScrollWeb"
|
|
286
|
+
}
|
|
287
|
+
export declare const enum NavigateType {
|
|
288
|
+
OpenWebpage = "OpenWebpage",
|
|
289
|
+
OpenJson = "OpenJson",
|
|
290
|
+
None = "None"
|
|
291
|
+
}
|
|
292
|
+
export declare const enum BaseActionQueueType {
|
|
293
|
+
CurrentLoopValue = "_current_loop_value",
|
|
294
|
+
LoopValueArray = "_loop_values",
|
|
295
|
+
CurrentLoopIsSkipFlag = "_current_loop_isskip",
|
|
296
|
+
IsOnlySkipOneLoopFlag = "_is_only_skip_one_loop",
|
|
297
|
+
IsClickNotFoundFlag = "_is_click_not_found",
|
|
298
|
+
CurrentIsSkipActionUtilNextLoopFlag = "_current_is_skip_action_util_next_loop",
|
|
299
|
+
IdentifiedLoopExtractDataCount = "_identified_loop_extract_data_count",
|
|
300
|
+
IdentifiedEachLoopExtractDataCount = "_identified_each_loop_extract_data_count",
|
|
301
|
+
NextItemOffset = "_next_loop_item_offset",
|
|
302
|
+
/** 记录每个循环的循环次数 */
|
|
303
|
+
LoopCount = "_loop_count",
|
|
304
|
+
/** 记录上次采集循环抽样数据 */
|
|
305
|
+
SamplingElementsMap = "_sampling_elements_map",
|
|
306
|
+
/** 判断当前页面的url */
|
|
307
|
+
CurrentPageTempUrl = "_temp_url",
|
|
308
|
+
/** 用来判断URL是否相等的标识 */
|
|
309
|
+
JudgeUrlEqual = "_url_equal_flag",
|
|
310
|
+
/** 连续无效翻页计数 */
|
|
311
|
+
ContinuousInvalidPageCount = "_continuous_invalid_page_count",
|
|
312
|
+
/** 记录连续循环点击加载更多按钮,一直没有新数据的循环次数 */
|
|
313
|
+
ContinuousClickLoadNoNewDataCount = "_continuous_click_load_no_new_data_count",
|
|
314
|
+
/** 缓存网页滚动条距离顶部的高度 */
|
|
315
|
+
WebScrollTopTemp = "_web_scroll_top_temp",
|
|
316
|
+
/** 文档的高度 */
|
|
317
|
+
WebDocumentHeight = "_web_document_height_temp",
|
|
318
|
+
/** 记录连续滚动网页,滚动条高度一只没有变化的循环次数 */
|
|
319
|
+
ContinuousScrollTopFixedWebCount = "_continuous_scroll_top_fixed_web_count",
|
|
320
|
+
CurrentLoopUrl = "_currentloopurl",
|
|
321
|
+
NextLoopOffset = "NextLoopOffset"
|
|
322
|
+
}
|
|
323
|
+
export declare const enum FuncRetryType {
|
|
324
|
+
None = 1,
|
|
325
|
+
IsLoaded = 2,
|
|
326
|
+
IsClick = 3
|
|
327
|
+
}
|
|
328
|
+
export declare const enum CaptchaCompleteStatus {
|
|
329
|
+
Default = 0,
|
|
330
|
+
Success = 1,
|
|
331
|
+
ImageNotFound = 2,
|
|
332
|
+
InputNotFound = 3,
|
|
333
|
+
SubmitNotFound = 4,
|
|
334
|
+
CapachaResultError = 5,
|
|
335
|
+
MaxCapachaRetryReached = 6,
|
|
336
|
+
SubImageNotFound = 7,
|
|
337
|
+
Unknown = 100
|
|
338
|
+
}
|
|
339
|
+
export declare enum ElementNotFoundHandleType {
|
|
340
|
+
NotHandle = 0,
|
|
341
|
+
AllowEmpty = 1,
|
|
342
|
+
AllowSkip = 2,
|
|
343
|
+
SetBackup = 3,
|
|
344
|
+
ModifyXPath = 4
|
|
345
|
+
}
|
|
346
|
+
export declare enum LocalCaptchaType {
|
|
347
|
+
/** 图片验证码,答案是字符串的类型(text) */
|
|
348
|
+
TextInput = 0,
|
|
349
|
+
/** 数字字母混合 */
|
|
350
|
+
Chars = 1,
|
|
351
|
+
/** 需要一次或者多次拖动([p1a, p1b, speed1], [p2a, p2b, speed2]) */
|
|
352
|
+
Drags = 2,
|
|
353
|
+
/** 谷歌验证码 V2 版本 */
|
|
354
|
+
reCAPTCHA_V2 = 3,
|
|
355
|
+
/** hCaptcha */
|
|
356
|
+
HCaptcha = 4,
|
|
357
|
+
/** 滑块拼图验证码 */
|
|
358
|
+
Silder = 64,
|
|
359
|
+
/** 点选验证码 */
|
|
360
|
+
Click = 65,
|
|
361
|
+
/** 滑动验证码(没有缺口和背景图,直接滑动到底的类型) */
|
|
362
|
+
SilderWithoutImage = 128,
|
|
363
|
+
/** 谷歌验证码V3 版本 */
|
|
364
|
+
ReCAPTCHA_V3 = 63,
|
|
365
|
+
/** 使用callback解决的方式 */
|
|
366
|
+
reCAPTCHA_V2_Callback = 100,
|
|
367
|
+
HCaptcha_Callback = 101,
|
|
368
|
+
reCAPTCHA_V3_Callback = 102,
|
|
369
|
+
Cloudflare = 999
|
|
370
|
+
}
|
|
371
|
+
export declare enum CaptchaAvailableStatus {
|
|
372
|
+
None = 0,
|
|
373
|
+
Success = 1,
|
|
374
|
+
AccountExpired = 2,
|
|
375
|
+
NoBalance = 3,
|
|
376
|
+
ReachTodayLimit = 4,
|
|
377
|
+
ServerError = 9
|
|
378
|
+
}
|
|
379
|
+
export declare enum IpProxyFromType {
|
|
380
|
+
None = 0,
|
|
381
|
+
Strong = 1,
|
|
382
|
+
Custom = 2,
|
|
383
|
+
Fake = 3
|
|
384
|
+
}
|
|
385
|
+
export declare enum UserAgentSwitchType {
|
|
386
|
+
None = 0,
|
|
387
|
+
Custom = 1,
|
|
388
|
+
FollowIP = 2
|
|
389
|
+
}
|
|
390
|
+
export declare enum CookieClearType {
|
|
391
|
+
None = 0,
|
|
392
|
+
Custom = 1,
|
|
393
|
+
FollowIP = 2
|
|
394
|
+
}
|
|
395
|
+
export declare enum CaptchaEventType {
|
|
396
|
+
/** 发送验证码参数事件 */
|
|
397
|
+
RequestCaptchaToken = "request-captcha-token",
|
|
398
|
+
/** 获取验证码Token事件 */
|
|
399
|
+
DeliverCaptchaToken = "deliver-captcha-token"
|
|
400
|
+
}
|
|
401
|
+
/** 下载文件字段文件命名方式 */
|
|
402
|
+
export declare enum DownloadFileRenameType {
|
|
403
|
+
SourceFileName = 0,
|
|
404
|
+
SourceFileMD5 = 1,
|
|
405
|
+
AcquisitionTime = 2,
|
|
406
|
+
FieldValue = 3
|
|
407
|
+
}
|
|
408
|
+
/** 文件名称重复时操作方式 */
|
|
409
|
+
export declare enum DownloadFileNameRepeatType {
|
|
410
|
+
AutoRename = 0,
|
|
411
|
+
Cover = 1,
|
|
412
|
+
SkipNonDownload = 2
|
|
413
|
+
}
|
|
414
|
+
/** 包含多个URL的间隔方式 */
|
|
415
|
+
export declare enum MutipleUrlSplitType {
|
|
416
|
+
LineBreak = 0,
|
|
417
|
+
Comma = 1,
|
|
418
|
+
Blank = 2
|
|
419
|
+
}
|