Please, use codereview, and show us what you have so far. Someone will point you in the right direction. Try not to do everything in one go. Thank you.
Alex
HTMLParser was added in 2.2 and disappeared in 3.0.
it seems unlikely your python isn't between those two,
but what version are you running?