It was somewhere outside Barstow when MaggieMagill
Could you direct me to where I would find these types of utilities? I'm not
quite sure what search terms I would use.
Google for "HTML analysis" or somesuch ought to give you tools that
meet your immediate needs, immediately.
If you want to write some Perl (whcih is a worthy goal, but probably
overkill for this) then look at the LWP module and the HTML:
arser
class (HTML::TokeParser is sometimes easier to use for people less
familiar with Perl). This will spit every tag back at you and a
simple switch statement can recognise the tag types and analyse
accordingly. A couple of hashes (associative arrays) to store things
in and off you go.
You could probably do this task with anything, and I;m not smart
enough to know what the best tool is. But when I do it, I re-write the
nasty hacky Perl I used last time and change a handful of lines for my
specific need.