I do not manage to extract the thumbnail link with xpath in the following script/json:
<script type="application/ld+json">{"@context":"https://schema.org","@type":"VideoObject","name":"XYZ","description":"Text","thumbnailUrl":"https://www.thumbnail.com/thumb.jpg","uploadDate":"2000-01-01","contentUrl":"https://www.example.com"}</script>
I need the thumbnail link (https://www.thumbnail.com/thumb.jpg) after "thumbnailUrl", but do not know how the selector would follow after
//script[@type="application/ld+json"]/...
Please help.
parse-json(//script[@type="application/ld+json"])?thumbnailUrlwould do.