我正在尝试刮擦产品的价格,但无法正常工作,有人可以帮忙吗,这是代码:
$curl->get('https://www.aliexpress.com/item/32844492002.html');
$response = $curl->getRawResponse();
$html4 = new simple_html_dom();
$html4->load($response);
$price2 = $html4->find("div[class='product-price'] div[class='product-price-current'] span[class='product-price-value']",0)->plaintext;
echo $price2;
我收到此错误
注意:试图获取非对象的属性“纯文本”