🎁 Get the FREE AI Skills Starter Guide β€” Subscribe β†’
BytesAgainBytesAgain
πŸ¦€ ClawHub

Shopify JSON-LD Parser

by @igorganapolsky

Parse JSON-LD structured data from Shopify product pages to extract commerce details like product info, offers (price, currency, availability), and inventory...

Versionv1.0.0
Downloads328
TERMINAL
clawhub install shopify-jsonld-parser

πŸ“– About This Skill


name: shopify-jsonld-parser description: > Parse JSON-LD structured data from Shopify product pages to extract commerce details like product info, offers (price, currency, availability), and inventory status from schema.org/Product and Offer. Use when: (1) analyzing Shopify HTML for product offers/pricing/stock, (2) extracting structured commerce data from web pages or local files, (3) querying JSON-LD for availability (InStock/OutOfStock/PreOrder), prices across variants, or offer counts. Handles @graph arrays and multiple scripts.

Shopify JSON-LD Parser

Parse JSON-LD from Shopify product pages (or any schema.org/Product JSON-LD) to extract structured commerce data reliably.

Quick Start

1. Fetch HTML: web_fetch a product page URL. 2. Parse: Run scripts/parse_shopify_jsonld.py input.html (outputs JSON). 3. Query output for offers, availability, etc.

Example:

exec command="python3 skills/shopify-jsonld-parser/scripts/parse_shopify_jsonld.py page.html"

Workflow

1. Input: HTML file/path with JSON-LD (from web_fetch, read, or local). 2. Find JSON-LD: Script extracts all