Google App script extracting data from website

前端 未结 2 749
渐次进展
渐次进展 2021-01-14 16:16

So I am writing a script which look at review done on google+ pages and updates a google spreadsheet.

I have found out that the line in the html which holds this val

2条回答
  •  情话喂你
    2021-01-14 16:31

    I agree with the previous answer but there are some omissions

    var response = UrlFetchApp.fetch(url);
    var str = response.getContentText();
    var balise = ''
    var cut = str.substring(str.indexOf( balise ), response.length);
    var value = cut.substring(balise.length, cut.indexOf(""));
    

提交回复
热议问题