Octoparse icon

Octoparse

Interact with Octoparse API

Task → Update Task URLs

AI-generated

Overview

This node operation updates the URLs associated with a specific task in Octoparse. It is useful when you need to change or set new URLs for a task, for example, when the target web pages for data extraction have changed or need to be refreshed. Users provide the task group, select the specific task, and input the new URLs (one per line) to update the task's URLs accordingly.

Use Case Examples

  1. Updating the URLs of a web scraping task after the target website structure changes.
  2. Setting multiple URLs for a task to scrape data from multiple pages.

Properties

Name Meaning
Task Group Select the task group that contains the task to update URLs for.
Task Select the specific task within the chosen task group to update URLs for.
URLs Input the URLs to set for the task, one URL per line.

Output

JSON

  • taskId - The ID of the task for which URLs were updated.
  • urls - The updated list of URLs set for the task.

Dependencies

  • Requires an API key credential for Octoparse API authentication.

Troubleshooting

  • Ensure the task group and task IDs are correctly selected; otherwise, the API request may fail.
  • The URLs input must be properly formatted as one URL per line; invalid URLs may cause errors.
  • Common error messages include authentication failures if the API key is invalid or missing, and request errors if the task or task group does not exist.

Discussion