URI::ParseSearchString

URI::ParseSearchString is a Perl module that can parse Apache refferer logs and extract search engine query strings.
Download

URI::ParseSearchString Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Spiros Denaxas
  • Publisher web site:
  • http://search.cpan.org/~sden/WebService-Geograph-API-0.04/lib/WebService/Geograph/API.pm

URI::ParseSearchString Tags


URI::ParseSearchString Description

URI::ParseSearchString is a Perl module that can parse Apache refferer logs and extract search engine query strings. URI::ParseSearchString is a Perl module that can parse Apache refferer logs and extract search engine query strings.SYNOPSIS use URI::ParseSearchString ( 'parse_search_string' ); $string = parse_search_string('http://www.google.com/search?hl=en&q=a+simple+test&btnG=Google+Search') ;FUNCTIONSparse_search_stringThis module provides a simple function to parse and extract search engine query strings. It was designed and tested having Apache referrer logs in mind. It can be used for a wide number of purposes, including tracking down what keywords people use on popular search engines before they land on a site. It makes use of URI::split to extract the string and URI::Escape to un-escape the encoded characters in it. Although a number of existing modules and scripts exist for this purpose, the majority of them are either outdated using obsolete search strings associated with each engine.The default function exported is "parse_search_string" which accepts an unquoted referrer string as input and returns the search engine query contained within. It currently works with both escaped and un-escaped queries and will translate the search terms before returning them in the latter case. The function returns undef in all other cases and errors.for example:$string = parse_search_string('http://www.google.com/search?hl=en&q=a+simple+test&btnG=Google+Search') ;would return 'a simple test'whereas$string = parse_search_string('http://www.mamma.com/Mamma?utfout=1&qtype=0&query=a+more!+complex_+search$&Submit=??Search??') ;would return 'a more! complex_ search$'Currently supported search engines include:· AOL (UK)· AllTheWeb· Blueyonder (UK)· Feedster Blog Search· Fireball (DE)· Froogle· Froogle UK· Google· Google Blog Search· HotBot· Ice Rocket Blog Search· Lycos· Mamma· Mirago (UK)· MSN· Netscape· Technorati Blog Search· Tiscali (UK)· Web.de (DE)· YahooRequirements:· Perl Requirements: · Perl


URI::ParseSearchString Related Software