What is the best way to parse html in google apps script

后端 未结 6 1928
刺人心
刺人心 2020-11-30 03:08
var page = UrlFetchApp.fetch(contestURL);
var doc = XmlService.parse(page);

The above code gives a parse error when used, however if I replace the

6条回答
  •  抹茶落季
    2020-11-30 04:02

    Natively there's no way unless you do what you already tried which wont work if the html doesnt conform with the xml format.

提交回复
热议问题