Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

802 B
Raw Blame
{
  "id": "books-list",
  "match": [
    "books.toscrape.com"
  ],
  "description": "列出 books.toscrape.com 某个列表页的书籍(标题/价格/库存)。示例配方,用于验证引擎。",
  "inputs": {
    "url": {
      "required": true
    }
  },
  "steps": [
    {
      "action": "navigate",
      "url": "{{url}}"
    },
    {
      "action": "wait",
      "loadState": "load"
    },
    {
      "action": "extract",
      "as": "books",
      "extract": {
        "from": "article.product_pod",
        "multiple": true,
        "fields": {
          "title": {
            "selector": "h3 a",
            "attr": "title"
          },
          "price": ".price_color",
          "availability": ".availability"
        }
      }
    }
  ],
  "output": "{{books}}",
  "access": "read"
}