the title says it all 😀
2 points
Try the package html2text. I haven’t used it before, but I think it might be what you’re looking for. Interestingly, it was originally developed by Aaron Schwartz, one of the co-founders of markdown.
Other than that I’ve seen people being pretty successful with a combination of wget and pandoc. I don’t know how well that would work in scripts though.