2
我正在圍繞選擇器來捕捉Amazon.com中的一部分。我試過不同的選擇器,但問題仍然存在。Cheerio中的DOM選擇器無法正常工作
我經歷的頁面是this product in Amazon。
var $ = cheerio.load(html);
console.log($('div[id="cm-cr-dp-review-list"]').html()); // Null
console.log($('#cm-cr-dp-review-list').html()); // Null
此外,提供的用於加載函數的html值是準確的。
乾杯,