NAME

URI::Sequin - Extracts useful information from Search Engine URLs

SYNOPSIS

use URI::Sequin;

$engine = "http://www.google.com/search?q=cats+and+dogs";

print %{&parse_url($engine)}->{'engine'} . " - ";
print %{&parse_url($engine)}->{'terms'} . "\n";

DESCRIPTION

So, what's new? The whole module has been fundamentally rewritten. Gone is the obsolete and limited database that the last program took its information from and in is an intelligent guessing device, that takes a guess at the search terms and the search engine. It has been tested on, and works on:

* Altavista		(www.av.com)
* Ask Jeeves		(www.aj.com)
* Excite		(www.excite.com)
* Google		(www.google.com)
* Hotbot		(www.hotbot.com)
* Infoseek		(www.infoseek.com)
* Lycos			(www.lycos.com)
* Magellan		(magellan.excite.com)
* Mamma			(www.mamma.com)
* Webcrawler		(www.webcrawler.com)
* Yahoo			(www.yahoo.com)

If anyone finds a search engine it doesn't work on, please email me ASAP so that I can make necessary changes in the next release...

How does it work? When it's passed an URL, it takes the QUERY_STRING used, if one is used in the URL, and attempts to find out the search terms from it. If it can, it returns the search terms and the base url of the search engine in a reference to an hash containing the information.

AUTHOR

Written by Peter Sergeant (sargie@hotmail.com) http://badassscripts.hypermart.net/sequin/

SEE ALSO

See the readme.txt file for important copyright information, information on using this module in scripts you plan to sell or distribute and future plans. In short, make sure you read readne.txt.

VERSION

Version 0.2 15 Feb 2000