Code: Select all
var doc = XmlService.parse(html)
Code: Select all
var html = UrlFetchApp.fetch(shopurl,options).getContentText();
Logger.log(html)
I looked at alot of pages involving parsing HTML and that is how they were saying to do it, with a few other things.
Every time it errors it returns this:
Which i presume, is a meta tag that isnt closed. I do not expect anything as far as editing the HTML, but i was wondering if there is a way to work around this while still parsing the code. Its giving me a headache really, and i kinda wanna make some progress on this.Error on line 133: The element type "meta" must be terminated by the matching end-tag "</meta>". (line 9, file "Shop Analyzer")
PS: the "Line 9, file shop analyzer" is my script, line 133 is your html btw.
If it wasnt for the fact it lies outside of my code, i would most liekly be able to solve it, but this way its faster.