I'm new to node.js. My experience has been in Java and VBA. I'm trying to scrape a website for a friend and all is going well until I can't get what I’m after.
<div class="gwt-Label ADC2X2-c-q ADC2X2-b-nb ADC2X2-b-Zb">Phone: +4576 102900</div>
That tag just has a text. no attr or anything. Yet I cannot scrape it using cheerio.
if(!err && resp.statusCode == 200){
var $ = cheerio.load(body);
var number = $('//tried everything here!').text();
console.log(number);
this function I also played around with
$('.ADC2X2').filter(function(i){
console.log("Sdfs");
console.log (i);
any suggestions would be greatly appreciated.
thanks all!