You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was using cheerio version 0.9.1 and it was working fine. I updated to the latest 0.10.0 (?) and my code stopped working, I am not sure why since the examples look the same. Here is what I am doing:
var $ = cheerio.load(response.doc); //where response.doc is an entire HTML document
I am then trying to get some data from the document, like the title:
I was using cheerio version 0.9.1 and it was working fine. I updated to the latest 0.10.0 (?) and my code stopped working, I am not sure why since the examples look the same. Here is what I am doing:
var $ = cheerio.load(response.doc); //where response.doc is an entire HTML document
I am then trying to get some data from the document, like the title:
$('title', 'head').each(function (i, elem) {
console.log( $(this).text() );
});
This worked with 0.9.1 but it does not with 0.10.0, no errors, it just never gets into the loop.
The text was updated successfully, but these errors were encountered: