I am really newbie at this...
Is it possible to use Google Apps Script to get the total value of this website: https://www.tokstok.com.br/checkout/?orderFormId=e4f540f0a5de4e2c8c007bfc0f8e67b3#/cart
I can only see the value when I use DevTools/Elements, I can't see it at the "view-source" code.
I was trying this code, but it doesn't return the info:
function getData() {
const url = 'https://www.tokstok.com.br/checkout/?rderFormId=e4f540f0a5de4e2c8c007bfc0f8e67b3#/cart';
const fromText = '<span class="x-resume-cart__price-value js--resume-cart-value">';
const toText = '</span>';
const content = UrlFetchApp.fetch(url).getContentText();
const scraped = Parser.data(content).from(fromText).to(toText).build();
Logger.log(scraped);
return scraped;
}
Thanks!