From: Giuseppe Bilotta Date: Fri, 28 Aug 2009 11:02:29 +0000 (+0200) Subject: search plugin: update google search X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=7d51d43a4f03a7529f30ed71fa807e9279aec39a;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git search plugin: update google search --- diff --git a/data/rbot/plugins/search.rb b/data/rbot/plugins/search.rb index 3b0fac5f..595dab3c 100644 --- a/data/rbot/plugins/search.rb +++ b/data/rbot/plugins/search.rb @@ -17,7 +17,8 @@ GOOGLE_SEARCH = "http://www.google.com/search?oe=UTF-8&q=" GOOGLE_WAP_SEARCH = "http://www.google.com/m/search?hl=en&q=" -GOOGLE_WAP_LINK = /(.*?)<\/a>/im +# GOOGLE_WAP_LINK = /(.*?)<\/a>/im +GOOGLE_WAP_LINK = /(.*?)<\/a>/im GOOGLE_CALC_RESULT = %r{.*?

]*>(.+?)} GOOGLE_COUNT_RESULT = %r{Results 1<\/b> - 10<\/b> of about (.*)<\/b> for} GOOGLE_DEF_RESULT = %r{

(Web definitions for .*?)
(.*?)
(.*?)\s-\s+