What would be best practice in scraping a horrible mess of a distributor's inventory page (using js to document.write a <td>, then using plaintext html to close it)? No divs/tds/anything is labelled with any id or classes, etc.

Should I just straight up preg\_match(?\_all) the thing or is there some xpath magic I can do?
There is no api, no feeds, no xml, nothing clean at all.

edit:

-
What i'm basically thinking of atm is something like <http://pastebin.com/raw.php?i=EuMfRVD5> - is that my best bet or is there any other way?