To extract JSON-LD structured data with Playwright, select every script[type='application/ld+json'] block, read the text of each with all_text_contents(), and json.loads it; then flatten any @graph ...