I use Gmail API, I want to get all human-readable text from messages, and some messages are in MIME text/html format. Is there a "right" way to do it? I tried to use BeautifulSoup4 (I use Python), but sometimes text is missing because I use tag filtering, and otherwise, some text is not human readable. I used this example, and tried to fine-tune it: link
Maybe you know, how to do right parsing, or to use some Gmail API feature?