|
NAMEURI::Sequin - Extract information from the URLs of Search-EnginesSYNOPSISuse URI::Sequin qw/se_extract key_extract log_extract %log_types/; $url = &log_extract($line_from_log_file, 'NCSA'); $log_types{'MyLogType'} = '^(.+?) -> .+$'; $url = &log_extract($line_from_log_file, 'MyLogType'); $keyword_string = &key_extract($url); ($search_engine_name, $search_engine_url) = @{&se_extract($url)}; DESCRIPTIONThis module provides three tools to aid people trying to analyse Search-Engine URLs. It’s meant mainly for those who want to analyse referrer logs and pick out key information about site visitors, such as which Search-Engine and keywords they used to find the site.The functions and globals provided (and exported by default) from this module are:
It’s easy to add another one. Simply add a key to the hash, with a value that is a regex. Parenthesise the part that is the referring URL, as the script uses $1 to obtain the URL. (see the example in the Synopsis section). I have only one request for people who use this module. *Please* tell me where and how you've used it, and if you have any thoughts or suggestions on it, tell me! BUGSDoesn't like the Amnesi Search Engine. But then, neither do I. Also, the 'General' log type needs to be used with discretion ... be sure that none of the URLs contain literal " if you use it.AUTHORPeter Sergeant <pete@grou.ch>COPYRIGHTCopyright 2001 Peter Sergeant.This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. POD ERRORSHey! The above document had some coding errors, which are explained below:
Visit the GSP FreeBSD Man Page Interface. |