So I had written a python script that scrapes my email for data. I used the following code to find items by class:
HRDataUnClean = str(soup.findAll("h2", {"class": "numbers"}))
This worked incredibly well, however as I am using GMail and some people complained about installing python and using the google api I wanted to write a script in google sheets that does a similar task.
I know how to grab the body of the email with:
var html = messages[0].getBody()
However this returns a string not an html object as I had before with pythons beautifulsoup. I have found google scrip code to search a by element class SearchByClass
However XmlService.parse(html) appears to require an html object. Is there anyway I can covert the email body from a string to a html object?