BeautifulSoup!

A much easier way to parse HTML pages and find the link.