There is a sample script at http://www.biterscripting.com/SS_WebPageToText.html . It removes all formating, tags, etc from a web page and extracts just the plain text. Download this script to some local .txt file. Then, you call this script as follows.
script SS_WebPageToText.txt...