What about parsing HTML in AppleScript?

There isn’t built-in support for HTML in AppleScript, so you can write your own HTML parser, or use some of the available third-parties, such as the vanilla library HTMLParser by Hamish Sanderson, or some of the available modules for Python, Perl, etc. (throught “do shell script”).