diff options
| author | Randall Hand <Yeraze@users.noreply.github.com> | 2025-12-14 06:15:53 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-12-14 11:15:53 +0000 |
| commit | b3196354d1272e6440119ba170c9d8369149baa4 (patch) | |
| tree | a738bd10d164da69aeb471b7e0c551e86a94cea9 /packages/plugins | |
| parent | f5c32d940ea6c2a6da6c225c2de1eba13b49f9e0 (diff) | |
| download | karakeep-b3196354d1272e6440119ba170c9d8369149baa4.tar.zst | |
fix: Fix Amazon product image extraction on amazon.com URLs (#2108)
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>
Diffstat (limited to 'packages/plugins')
0 files changed, 0 insertions, 0 deletions
