What is the best way to convert a table within an HTML document to an excel-readable file? I would like this to be a command-line tool that I can call in bash on my mac, as I'd like to batch process a bunch of HTML files.
I know I could write a script to do this fairly easily, but am looking for generic, existing tools that can be called from the command-line. I would prefer that formatting be preserved as much as possible, but would be willing to fall back to CSV if nothing else that's easy to install and set up fits the bill.