Skip to main content
octoparse detect opens the Octoparse extension browser, inspects the page, and generates a local task file. Use it when you want to create a task from a URL without the Octoparse desktop app.
Detector stability improved in v0.1.28. Detection can still require review for complex pages, login flows, popups, or unusual layouts.
Three modes are available:
detect requires a valid Octoparse account and credentials. Local Chrome is also required. detect does not support Linux arm64. See Installation for platform requirements.

Automatic mode

The CLI picks the best candidate data region and generates a task file:
Pass a natural-language description of what you want to extract:
Search for a keyword before detecting, useful for search result pages:
Use --json for a structured response:
If --output is omitted, a detected_<host>.json file is created automatically.

Manual mode

Manual mode opens a browser overlay where you can complete login, dismiss popups, and select the data region yourself:
Use --save-session to store cookies for sites that require login, so future local runs can replay the session:
Cookie sessions do not cover every site, especially pages that require localStorage, device binding, or fresh verification.

Validate the generated task

After generating a task file, validate it before running:
Then run a local sample:
Export the sample results:

AI agent workflow

For LLM-driven or automated workflows, use the agent contract instead of --auto. Start by reading the capabilities:
The response includes machineContract.recipes.createTaskFromUrlWithAgent — the recommended workflow for agents.

One-shot (fastest)

Use --agent with a trusted local runner that can read a context file and write a plan:
The response is a single JSON envelope containing the generated task, preview result, and sample run output.

Auditable step-by-step

For audit or repair scenarios, use the prepare / preview / apply sequence instead of generating the task in one step.
1

Prepare agent context

Export webpage context for agent planning.
This generates context.json with candidate data regions, field samples, visual screenshots, and a decisionSummary.
2

Write a plan

Create a plan.json based on context.json.Use the octopus.detect.agent-plan.v1 schema. Open the annotated screenshot path in context.visualArtifacts.annotatedScreenshotPath before choosing fields, and include visualReview evidence in the plan.
3

Preview the plan

Validate the plan before generating the final task file.
If data.pass is false, revise the plan before applying it.
4

Apply the plan

Generate the final local task file.
The generated task.json can then be inspected, validated, or used in a local CLI run.

Troubleshooting detect

What’s next

Run your first task

Run a generated task locally, check status, and export results.

Command cheatsheet

Full reference for detect, run, cloud, data, and auth commands.