Hi... Firstly, how do you create a metasearch? As in, how do you send a query to search engines like Altavista, and retrieve the results in raw data form?

Secondly, what permission is needed to run this sort of metasearch program? Is it illegal?

Thanks.