I'm trying to write a Bash script that will extract informations from a HTML page (using wget).
I know my informations will be between <h*> tags, but is there a nice way to get those ?
To be more precise let's have an example :
< h1>header1< /h1>
< h2>header2< /h2>
< h2>otherHeader2< /h2>
< h1>lastHeader1< /h1>
< h2>lastHeader2< /h2>
I'd like to extract "otherHeader2", a.k.a. the second (but it could be anywhere) header afer the header1.

#! /usr/bin/pythonfor a python script. You may even find existing code for one of those, and it might be useful to learn the languages. – Marty Fried Oct 5 '12 at 23:30sedorawk? – drN Oct 20 '12 at 23:35