Hey I'm trying to access global variables from the result of a HTML request in node. I can currently access the nodes using the cheerio module however I'm stumped as to how I can access a global page variable ?
request(options, function(error, response, html) {
if (!error && response.statusCode == 200) {
var productData = {};
// access html with JQUERY
var $ = cheerio.load(html);
// is it possible to access global
// page variables here ?
}
}
via karen_west
No comments:
Post a Comment