The nearest result without parsing posts as separeted .md files, was obtained with html2text code, from Aaron Swartz. It could be found [here](https://github.com/thomasf/exitwp/blob/master/html2text.py) #1.