in reply to Hits algorithm

My question is how can I get hubs and authorities for a particular query using perl?

Uhm, you would implement the first part of the Hits Algorithm. Google gives you a backlink count (not very accurate) via the link: query that give a measure of authority. The number of links you can extract from a page is a measure of its hub-iness. This C implementation has some good discussion

cheers

tachyon