If you use the URL from the HTMLViewer to pull the source using a URLConnection, you can parse it and get the needed information. This should be possible on mac,win,lin,…
Mostly like described here: HTML-source code as a string - #5 by Riccardo_Tani