Octoparse icon

Octoparse

Interact with Octoparse API

Task → Update Task Parameters

AI-generated

Overview

This node operation updates the parameters of a specific task within a selected task group in Octoparse. It allows users to modify the actions and loop items associated with the task by providing JSON arrays describing the new action objects and loop item objects. This is useful for automating task configuration changes in Octoparse workflows, such as updating scraping actions or loop behaviors programmatically.

Use Case Examples

  1. Updating the properties of actions within a web scraping task to change how data is extracted.
  2. Modifying loop items in a task to adjust the iteration over a set of URLs or elements dynamically.

Properties

Name Meaning
Task Group Select the task group containing the task to update.
Task Select the specific task within the chosen task group to update.
Actions (JSON) Provide an array of action objects in JSON format, each containing actionType, actionId, and properties to update the task's actions.
Loop Items (JSON) Provide an array of loop item objects in JSON format, each containing actionId, loopType, loopItems array, and isAppend flag to update the task's loop items.

Output

JSON

  • taskId - The ID of the updated task.
  • actions - The updated array of action objects for the task.
  • loopItems - The updated array of loop item objects for the task.

Dependencies

  • Octoparse API with an API key credential for authentication.

Troubleshooting

  • Ensure the Task Group ID and Task ID are correctly selected and valid; invalid IDs will cause API request failures.
  • The Actions (JSON) and Loop Items (JSON) must be valid JSON arrays; malformed JSON will cause parsing errors.
  • API rate limits or authentication issues may cause request failures; verify API credentials and token validity.

Discussion