Urgent.News

What's breaking now, across thousands of outlets.

Tech

Reading any marketplace product page from a Chrome extension: JSON-LD first, selectors second

If you have ever tried to build a tool that "reads" a product page — an Amazon listing, a Shopify storefront, an eBay item, an Etsy shop page — you already know the problem: every marketplace renders the same conceptual data (title, bullets, description, images, price) in completely different DOM shapes. We ran into this while building AI Product Page Optimization , a Chrome extension that reads…

Building tools to read marketplace product pages, such as Amazon listings or Shopify storefronts, presents a challenge due to the varying DOM structures for the same data (title, bullets, description, images, price). The developers of AI Product Page Optimization, a Chrome extension, focused on creating a solution for this issue.

The core of their approach is to first extract structured data using JSON-LD before applying platform-specific DOM selectors. JSON-LD provides a normalized data shape that is not affected by layout changes or encoding edge cases, unlike regex-over-HTML methods. However, JSON-LD alone is not a complete solution, as marketplaces often include richer or more current data in their DOM.

To address this, the team applies platform-specific DOM selectors as a scoped fallback after JSON-LD extraction. The four platforms they read, Amazon, Shopify, eBay, and Etsy, each have unique characteristics that require tailored approaches. Amazon's DOM is deep and nested with frequent class-name changes, while Shopify offers a more uniform target. eBay's item-specific layouts require different parsing strategies, and Etsy's listing copy requires special attention for downstream generation.

Constraints play a significant role in determining how the extracted data is presented. Each marketplace has specific requirements for the formatted copy, such as character limits on Amazon or length caps on eBay. Additionally, the output language should match the detected page language to ensure better workflow for sellers. The developers also implemented a stateless extension that runs in the page context, allowing for real-time reading of the live page and sending only the necessary data onward.

This approach keeps the extension compatible with platform policies and minimizes the data footprint. The final step in the process is a human review before any optimized copy is sent back to the marketplace. AI Product Page Optimization follows a credit-based system for generated suggestions, with text suggestions earning one credit and AI-enhanced images earning two credits.

The extension provides a web dashboard for review, with features like before/after comparison, history, and optional share links. Users can approve or reject the suggested changes before publishing.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

A Discord bot & server list that recommends based on what you actually like, not what's most popular

Hey everyone! For the past few months I've been building Guildscape , a Discord bot and server list. The thing that always bugged me about existing listing websites is the same giant bots and servers…

  • Guildscape is a Discord bot and server list with personalized recommendations
  • Users can compare bots side by side for informed decisions
  • Over 50,000 bots and 1,500 servers listed on the platform

ClauseHound: a pet-insurance decision engine that refuses to guess

This is a submission for the Sanity Challenge , Path One: Ship an Agent That Queries Real Content. 🔗 Demo: https://clausehound-1rmpnbeb5-lingzhoudesign-gmailcoms-projects.vercel.app 🗄️ Sanity…

  • ClauseHound helps consumers navigate pet insurance policies
  • Provides exact clause citations for policy decisions
  • Refuses to guess if coverage clauses and exclusions conflict

Choosing Between C and Rust in 2026: Criteria for Project Decisions Based on Language Strengths and Limitations

Introduction In 2026, the choice between C and Rust is more than a matter of personal preference—it’s a strategic decision that hinges on system mechanisms , environment constraints , and…

  • C offers minimal runtime overhead, crucial for kernel modules and RTOS.
  • Legacy systems favor C for seamless integration with old hardware/software.
  • Rust's steep learning curve can delay projects with tight deadlines.

More from Thursday 1 October →