goutte returns 当前节点列表为空
goutte returns The current node list is empty
下面的代码总是returnsThe current node list is empty.
$c = $client->request('GET', 'https://mihanblockchain.com/exchange-prices');
$selector = "[data-coin|='usdt'] tr td#ex-1-buy-price";
$result = $c->filter($selector)->text();
提前致谢
由于您的最后一个选择器是 #ex-1-buy-price
,这是页面中的唯一 ID,因此您不需要其他任何东西
$selector = "#ex-1-buy-price";
$result = $c->filter($selector)->text();
这有效 returns 840,000,100 تومان
下面的代码总是returnsThe current node list is empty.
$c = $client->request('GET', 'https://mihanblockchain.com/exchange-prices');
$selector = "[data-coin|='usdt'] tr td#ex-1-buy-price";
$result = $c->filter($selector)->text();
提前致谢
由于您的最后一个选择器是 #ex-1-buy-price
,这是页面中的唯一 ID,因此您不需要其他任何东西
$selector = "#ex-1-buy-price";
$result = $c->filter($selector)->text();
这有效 returns 840,000,100 تومان