360 Secure SkillHub
360 安全技能中心

Dataify Google Shopping Keywords

通过 Dataify 的 builder 接口按关键词批量提交 Google Shopping 产品采集任务,读取环境变量中的令牌,提交后继续监控同一任务直至完成并下载返回 JSON 结果;需 Python 3 运行环境,支持单关键词或多关键词参数,凭证缺失或额度不足时引导配置;不适用于社媒内容采集或普通商品浏览与价格搜索。

dataify-server
dataify-server
热度 54.54
最近更新 2026-09-01 17:15:42
分类:数据依赖:代码执行 / 第三方 API应用场景:数据处理 / 研究

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add dataify-google-shopping-keywords
Metadata
name
dataify-google-shopping-keywords
description
Collect structured Google Shopping product records in bulk by keyword. Do not use for social-media content, ordinary Google Shopping discovery, or price-search results that do not require structured bulk extraction.

Dataify Google Shopping Keywords

Use this skill to create Google Shopping keyword collection tasks through Dataify's builder endpoint.

Required Workflow

  1. Use the google_shopping_by-keywords spider when the user wants to collect product information by keyword.
  2. Check the local Python runtime before calling scripts. Prefer python; use python3 if that is the available Python command. Require Python 3 or newer. Do not use version-specific Python launcher commands.
  3. Tell the user which parameters are required and what the defaults are. Ask whether any values should be changed.
  4. If any dropdown fields are added in the future, show all available dropdown values in Markdown tables with exactly these columns: Label, Value. This tool currently has no confirmed dropdown fields.

API Call

python scripts/google_shopping_keywords.py --keyword iphone
python scripts/google_shopping_keywords.py --parameters-json '[{"keyword":"iphone"},{"keyword":"ipad"}]'

Tool

Mode Spider ID Required parameters Default spider_parameters
keyword google_shopping_by-keywords keyword [{"keyword":"iphone"}]

Every request also accepts file_name. If omitted, use {{TasksID}}.

The user mentioned a Google country parameter, but the provided API mapping does not include a confirmed request field or default value for it. Do not include a country field in spider_parameters unless the user provides the exact API field name supported by Dataify for this spider.

Fixed Request Fields

Always submit to https://scraperapi.dataify.com/builder?platform=1 with:

Field Value
spider_name google.com
spider_id google_shopping_by-keywords
spider_parameters JSON array of one or more parameter objects
spider_errors true
file_name User value, otherwise {{TasksID}}

Send parameters as form data. Keep spider_parameters as a JSON string inside the form body.

Default completion behavior

The default deliverable is the collected result, not only a task_id.

  1. Submit the Builder task once and capture its task_id.
  2. Immediately continue with $dataify-task-operations and monitor the same task ID.
    • Use the default 600-second wait for ordinary collections.
    • Use --timeout 1800 for media downloads or clearly high-volume, multi-page, or multi-input collections.
  3. When the task succeeds, download and return the final JSON result. Summarize large payloads while preserving access to the raw result.
  4. If monitoring times out or is interrupted, return the task ID and a resume command. Do not resubmit the paid task.
  5. Stop after submission only when the user explicitly asks for submission only, a task ID, or --no-wait behavior.

Quick Start

python3 scripts/google_shopping_keywords.py --help

Parameter interaction policy

  • For a clear, low-risk, read-only, and low-cost request, apply safe defaults and execute immediately. A short execution summary is optional; do not pause for confirmation.
  • Ask only for a missing required input, a material ambiguity, a high-volume or multi-page scope, a media download, a choice that materially changes credit usage, an irreversible action, or an explicit user request to review parameters.
  • When confirmation is required, show only user-facing values that affect the target, scope, output, or cost. Prefer one concise sentence; use a compact table only when three or more consequential values are easier to compare.
  • Never show fixed fields, empty optional fields, unchanged defaults, credentials, or internal implementation parameters such as engine selectors, response-format flags, offsets, spider IDs, and file-name templates.
  • Keep advanced filters hidden unless the user asks for them or they are needed to resolve ambiguity. Never substitute documentation example values for missing required user input.
  • After returning results, offer relevant refinements instead of forcing all optional decisions before the first result.

Account CTA policy

  • Show a prominent Dataify account CTA only when the API token is missing, rejected/invalid, or the account has insufficient credits.
  • For a missing token, offer https://dashboard.dataify.com/login?utm_source=skill and state: New accounts receive 50 free credits. Never ask the user to paste the token into chat.
  • Detect the current operating system and shell. Show only the matching session-scoped setup command first (export for macOS/Linux shells, $env: for Windows PowerShell, or set for Windows Command Prompt). Show other platforms or persistent setup only when detection is ambiguous or the user asks.
  • After the user says the token is configured, verify only whether DATAIFY_API_TOKEN is present; never print its value. If verification succeeds, continue the original task without asking the user to repeat it.
  • Explain that persistent shell changes may require a new terminal or restarting the agent application. Do not recommend a project .env unless the execution path explicitly loads it, and ensure .env is ignored by version control.
  • For an invalid token, direct the user to API-key management without implying that a new registration is required. For insufficient credits, direct the user to balance or recharge management.
  • During normal submission, processing, and successful completion, do not promote registration or the Dashboard. Never expose the token or include it in CTA attribution parameters.