fix(amazon-shopping): verify prime and delivery filters
This commit is contained in:
@@ -16,6 +16,7 @@ Search result cards should be treated as candidates, not final truth. Prefer car
|
||||
| `rating` | `aria-label` or visible text like `4.6 out of 5 stars` | Optional. |
|
||||
| `reviewCount` | text near rating like `1,234 ratings` | Optional. |
|
||||
| `delivery.display` | visible delivery promise text | Optional and ZIP/session dependent. |
|
||||
| `delivery.prime` | visible Prime badge, Prime icon class, `aria-label`, `alt`, or delivery text | Optional and ZIP/session dependent. Preserve a true search-card Prime signal when detail text omits the literal word Prime. |
|
||||
| `isSponsored` | visible sponsored marker | Sponsored results may be included but must be labeled. |
|
||||
|
||||
## Detail Page Fields
|
||||
@@ -40,6 +41,10 @@ Open only normalized product detail URLs under `/dp/<ASIN>` or `/gp/product/<ASI
|
||||
- `more than 4.5 stars` means `rating > 4.5`.
|
||||
- `4.5 stars or better` means `rating >= 4.5`.
|
||||
- `less than $4 each` means visible unit price first, then high-confidence unit-count inference. Unknown unit prices do not pass strict unit-price filters.
|
||||
- `77 inches or wider` means the overall product width must be `>= 77` inches. Prefer product/item dimensions with an explicit `W` component; ignore seat, arm, door, package, and cushion widths.
|
||||
- `shipped with Prime` / `Prime shipping` means a visible Prime signal must be detected on the search card or detail page.
|
||||
- `delivery by tomorrow` and `overnight shipping` require visible delivery text that indicates tomorrow, overnight, next-day, or one-day delivery.
|
||||
- `top 10 by price` sorts passing products by displayed product price ascending.
|
||||
- Missing fields must be represented as `null` or noted in `missingFields` / `extractionNotes`; never fabricate values.
|
||||
|
||||
## Official Alternatives
|
||||
|
||||
@@ -5,13 +5,13 @@ Use these patterns when debugging or extending the `amazon-shopping` browser wor
|
||||
## Search Page
|
||||
|
||||
```text
|
||||
Use the installed web-automation skill. Open https://www.amazon.com/s?k=<encoded query>. Wait for rendered search results. If a CAPTCHA, bot check, sign-in wall, or access denied page appears, stop and return a challenge status. Otherwise extract visible product cards with ASIN, title, product URL, displayed price, rating text, review count text, delivery text, sponsor marker, and image URL. Do not open cart, sign-in, wishlist, or review-listing pages.
|
||||
Use the installed web-automation skill. Open https://www.amazon.com/s?k=<encoded query>. Wait for rendered search results. If a CAPTCHA, bot check, sign-in wall, or access denied page appears, stop and return a challenge status. Otherwise extract visible product cards with ASIN, title, product URL, displayed price, rating text, review count text, delivery text, Prime badge/icon/aria/alt signal, sponsor marker, and image URL. Do not open cart, sign-in, wishlist, or review-listing pages.
|
||||
```
|
||||
|
||||
## Detail Page
|
||||
|
||||
```text
|
||||
For each candidate product detail URL under /dp/<ASIN> or /gp/product/<ASIN>, open the page slowly one at a time. Extract title, canonical link, visible buy-box/current price, delivery summary, availability, seller when visible, feature bullets, product details/specification table rows, rating score, review count, and visible customer-review histogram percentages if present on the detail page. Do not navigate to /product-reviews or reviewer profile pages.
|
||||
For each candidate product detail URL under /dp/<ASIN> or /gp/product/<ASIN>, open the page slowly one at a time. Extract title, canonical link, visible buy-box/current price, delivery summary, Prime badge/icon/aria/alt signal, availability, seller when visible, feature bullets, product details/specification table rows, rating score, review count, and visible customer-review histogram percentages if present on the detail page. Do not navigate to /product-reviews or reviewer profile pages.
|
||||
```
|
||||
|
||||
## Pagination
|
||||
|
||||
Reference in New Issue
Block a user