如何从下面获取价格和图像值。
DOMElement对象([tagName] =>脚本[schemaTypeInfo] => [nodeName] =>脚本[nodeValue] => {“ @context”:“ https://schema.org”,“ @ type”:“ ItemList”,“ itemListElement”:[{“ offers”:{“ priceCurrency”:“ Rs。”,“ @ type”:“ Offer “,”价格“:” 133998.00“,”可用性“:” https://schema.org/InStock“},”图片“:” https://static-01.daraz.pk/p/267cc89e2ff3e886b6bded905007d0a9.jpg“,” @ type“:”产品“,”名称“:” Galaxy注意9-6.4 \“-6Gb Ram-128Gb Rom-Dual Sim-Ocean Blue”,“ url”:“ https://www.daraz.pk/products/samsung-galaxy-note-9-64-6gb-ram-128gb-rom-dual-sim-ocean-blue-i100262063-s1222963201.html?search=1”},{“ offers”:{“ priceCurrency”:“ Rs。” “,” @ type“:”提供“,”价格“:” 111999.00“,”可用性“:” https://schema.org/InStock“},”图像“:” https://static-01.daraz.pk/original/1da238a72d721dd92c6db87176479b47.jpg“,” @ type“:”产品”,“名称”:“ Galaxy S9 +-6.2 \” QHD +-6GB RAM-128GB ROM-12/12 / 8MP摄像头-钛灰色”,“ url”:“ https://www.daraz.pk/products/galaxy-s9-62-qhd-6gb-ram-128gb-rom-12128mp-camera-titanium-gray-i1487172-s9267151.html?search=1”}
答案 0 :(得分:0)
您需要继续分解问题,并一次解决一项任务: