Skip to content

Add SG grocery product-search domain skills (Shopee, Lazada, FairPrice)#405

Open
EclairAikome wants to merge 2 commits into
browser-use:mainfrom
EclairAikome:main
Open

Add SG grocery product-search domain skills (Shopee, Lazada, FairPrice)#405
EclairAikome wants to merge 2 commits into
browser-use:mainfrom
EclairAikome:main

Conversation

@EclairAikome
Copy link
Copy Markdown

@EclairAikome EclairAikome commented Jun 4, 2026

Field-tested playbooks for searching and extracting frozen ramen/udon SKUs from the three Singapore grocery sites, captured during a competitor survey:

  • shopee/product-search.md: login wall, blocked search API, lazy-rendered grid, innerText price-line parser, IPC/timeout recovery ladder
  • lazada/product-search.md: price-anchored DOM walk, large-js()-returns-None payload cap, PDP spec-grid parser, card-price != RSP, RedMart = Lazada
  • fairprice/product-search.md: clean /product/ anchors, richest PDP (origin + storage fields), fuzzy-search filtering

Also adds reusable Lazada/Shopee list + PDP extractors to agent_helpers.py.


Summary by cubic

Adds SG grocery product-search skills for Shopee, Lazada/RedMart, and FairPrice, plus reusable list/PDP extractors in agent_helpers.py. Also removes a dead-code stub in laz_detail() with no behavior change.

  • New Features
    • Added domain skill playbooks: domain-skills/shopee/product-search.md, domain-skills/lazada/product-search.md, domain-skills/fairprice/product-search.md (navigation, extraction patterns, site-specific gotchas).
    • Implemented reusable helpers in agent_helpers.py: laz_list(limit), shopee_list(), laz_detail(), page_text() for price-anchored list parsing and PDP spec fields (brand, pack size, origin, type, price, seller).

Written for commit 9994b35. Summary will update on new commits.

Review in cubic

Field-tested playbooks for searching and extracting frozen ramen/udon SKUs
from the three Singapore grocery sites, captured during a competitor survey:

- shopee/product-search.md: login wall, blocked search API, lazy-rendered
  grid, innerText price-line parser, IPC/timeout recovery ladder
- lazada/product-search.md: price-anchored DOM walk, large-js()-returns-None
  payload cap, PDP spec-grid parser, card-price != RSP, RedMart = Lazada
- fairprice/product-search.md: clean /product/ anchors, richest PDP
  (origin + storage fields), fuzzy-search filtering

Also adds reusable Lazada/Shopee list + PDP extractors to agent_helpers.py.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 4 files

Re-trigger cubic

The breadcrumb-scan loop body was just `pass` and did nothing; the real breadcrumb/title extraction happens lower in the function. No behavior change.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant