Surfer actions

Hi,
some questions about fetching search results from a web-site:
i wondered how different web sites can perform searches- if they offer such a service on their site. Isn’t there an universal method to tell a web site to perform a search on - site ? (not Google, site specific)
the idea was to use Curl to catch an empty or a full list of search results (as example: http://Apple.com , string tags: “iPad mini” )
i connect the question with another:
how to get the checksum of a downloaded file and compare it with the checksum provided on the download site ?

some advices, directions ?

md5 example and ideas can be found here perhaps:

https://github.com/bcylin/verify-checksums/blob/master/verify-checksums.applescript