aboutsummaryrefslogtreecommitdiffstats
path: root/apps/workers/metascraper-plugins/metascraper-amazon-improved.ts (follow)
Commit message (Collapse)AuthorAgeFilesLines
* fix: Fix Amazon product image extraction on amazon.com URLs (#2108)Randall Hand2025-12-141-0/+77
The metascraper-amazon package extracts the first .a-dynamic-image element, which on amazon.com is often the Prime logo instead of the product image. This works fine on amazon.co.uk where the product image appears first in the DOM. Created a custom metascraper plugin that uses more specific selectors (#landingImage, #imgTagWrapperId, #imageBlock) to target the actual product image. By placing this plugin before metascraperAmazon() in the chain, we fix image extraction while preserving all other Amazon metadata (title, brand, description). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude <noreply@anthropic.com>