Actions22
- Cloud Extraction Actions
- Data Actions
- Task Actions
- Task Group Actions
Task → Update Loop Items
AI-generatedOverview
This node operation updates the loop items of a specified loop action within a task in Octoparse. It allows users to either replace the existing loop items or append new items to the current list. This is useful for dynamically modifying the items that a loop action processes during task execution, such as updating a list of URLs or text items to iterate over.
Use Case Examples
- Updating a loop action in a web scraping task to include new URLs for extraction.
- Appending additional text items to an existing loop in a data processing task.
Properties
| Name | Meaning |
|---|---|
| Task Group | Select the task group containing the task to update. |
| Task | Select the specific task to update the loop items for, within the chosen task group. |
| Action | Select the loop action within the task whose loop items will be updated. |
| Loop Type | Specify the type of loop items, either a list of text items or URLs. |
| Loop Items | The new loop items to set or append, entered as a multiline string with one item per line. |
| Append | Boolean flag indicating whether to append the new loop items to the existing list (true) or replace the existing list (false). |
Output
JSON
taskId- The ID of the task that was updated.actionId- The ID of the loop action that was updated.loopType- The type of the loop items updated (TextList or UrlList).loopItems- The updated list of loop items after the operation.
Dependencies
- Octoparse API with an API key credential for authentication
Troubleshooting
- Ensure the selected task group, task, and action IDs are valid and accessible with the provided API credentials.
- Verify that the loop items are provided as a multiline string with one item per line; empty lines are ignored.
- If the API returns errors, check network connectivity and API rate limits.
- If appending items, confirm that the existing loop items are compatible with the new items in type and format.
