Web scraping 痛风刮除-JSON-LD-仅限“@“类型”为:&引用;产品「;

Web scraping 痛风刮除-JSON-LD-仅限“@“类型”为:&引用;产品「;,web-scraping,web-crawler,goutte,Web Scraping,Web Crawler,Goutte,我使用Goutte来刮取JSON-LD数据,如下所示: $client = new Client(); $url = "https://www.xxxx.com"; $crawler = $client->request('GET', $url); $crawler->filterXPath('//*[@type="application/ld+json"]') ->each(function ($node) {

我使用Goutte来刮取JSON-LD数据,如下所示:

$client = new Client();
$url = "https://www.xxxx.com";
$crawler = $client->request('GET', $url);
$crawler->filterXPath('//*[@type="application/ld+json"]')
      ->each(function ($node) {
          //do something
      }
是否可以进行筛选,使其仅为
“@type”:“产品”
, 它跑起来了

谢谢