Octoparse icon

Octoparse

Interact with Octoparse API

Task → Update Action Parameters

AI-generated

Overview

This node operation updates the parameters of actions within a specified task in Octoparse. It is useful for automating modifications to task actions, such as changing properties of navigation, text entry, or loop actions within a web scraping task. For example, you can update the properties of multiple actions in a task programmatically to adjust scraping behavior without manual intervention.

Use Case Examples

  1. Updating the properties of a NavigateAction and EnterTextAction within a task to change how the scraper interacts with a webpage.
  2. Modifying loop items in a LoopAction to adjust the iteration parameters dynamically.

Properties

Name Meaning
Task Group Select the task group containing the task to update.
Task Select the specific task whose action parameters will be updated.
Actions The list of actions to update, each including the action type, action ID, and an array of properties to set (as JSON).

Output

JSON

  • actionId - The ID of the updated action.
  • actionType - The type of the updated action.
  • properties - The updated properties of the action.

Dependencies

  • Octoparse API with an API key credential for authentication.

Troubleshooting

  • Ensure the taskGroupId and taskId parameters are correctly set and correspond to existing entities in Octoparse.
  • The actions JSON must be correctly formatted; invalid JSON will cause errors.
  • API request failures may occur due to network issues or invalid credentials; verify API key and network connectivity.

Discussion