Reputation: 9
var URL = "<https://www.google.com/travel/flights/s/fhfbNzzwytaS3Xgs8>";
let response = UrlFetchApp.fetch(URL);
let $ = Cheerio.load(response.getContentText(),{decodeEntities:false})
let data = $('div,span').text();
Logger.log(data);
Hi. I try to get the above price on Google Flight
but the result are the other words, doesn't output any price at all.
So how should I get correct price result that I want?
Upvotes: 0
Views: 86