360 Secure SkillHub
360 安全技能中心

Supermarket Sales

该 Skill 通过 Node 脚本抓取 Coles 每周特价商品,Woolworths 则借助第三方聚合站点获取,最终以 Markdown 表格输出商品、价格与优惠信息,适合墨尔本市区用户查询和比较两家超市的当周特价。

nicowu07
nicowu07
热度 79.74
最近更新 2026-05-11 17:42:10
分类:生活依赖:代码执行 / 联网浏览搜索 / 第三方 API应用场景:购物

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add supermarket-sales
Metadata
name
supermarket-sales
description
Fetch weekly sale details from Australian supermarkets (Woolworths and Coles). Use when the user wants to check current specials, compare prices, or get sale information from Woolworths or Coles.

Supermarket Sales Fetcher

Fetch weekly specials and sale details from Woolworths and Coles Australia.

Overview

This skill retrieves current supermarket specials from Australia's two major grocery chains:

  • Coles - Direct fetch via Puppeteer browser automation
  • Woolworths - Via trusted third-party aggregators (official site blocks automated access)

Works well for Melbourne metro area (postcode 3000-3008).

Installation

# Clone and install dependencies
npm install

This will install:

  • puppeteer (^22.0.0) - Browser automation

Requires: Node.js 18+, npm

Usage

Common Commands

Task Command
Fetch all deals npm start or node scripts/fetch_daily.js
Coles only npm run coles or node scripts/fetch_with_puppeteer.js
Bash (basic) bash scripts/fetch_sales.sh

Alternative: Web Fetch

For Woolworths deals without running code:

web_fetch: { "url": "https://www.catalogueau.com/sales/?stores=Woolworths" }
web_fetch: { "url": "https://currentspecials.com.au/woolworths-weekly-catalogue/" }

Alternative: Search

web_search_plus: { "query": "Woolworths Coles specials this week Melbourne" }

How It Works

Coles

Uses Puppeteer to launch a headless browser, navigate to coles.com.au/on-special, and extract product cards with prices and savings.

Woolworths

Uses trusted aggregators (catalogueau.com, currentspecials.com.au) since woolworths.com.au blocks automated access.

Output

Sample output:

=== COLES SPECIALS - 11 Apr 2026 ===
| # | Product | Price | Deal |
|---|---|---|
| 1 | Coles Strawberries 250g | $4.00 | Was $16/kg |
| 2 | Staminade Powder 585g | $8.00 | Save $3.50 |

Sources

Store Method URL
Coles Puppeteer coles.com.au/on-special
Woolworths Aggregator catalogueau.com/woolworths/
Both Search web_search_plus

Troubleshooting

Puppeteer not found

Install Chromium:

npx puppeteer browsers install chrome

No deals found

  • Site may have changed selectors - check for updates
  • Try alternative methods (web_fetch or search)

Errors

Check Node.js version: node --version (need 18+)