From 3a0f8cd85404e5ea99c316deb8b531d6a2407e4e Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Fri, 31 Aug 2012 20:33:40 +0200 Subject: [PATCH] search: update for changes in google's html --- data/rbot/plugins/search.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/rbot/plugins/search.rb b/data/rbot/plugins/search.rb index f54c0df6..0a439708 100644 --- a/data/rbot/plugins/search.rb +++ b/data/rbot/plugins/search.rb @@ -17,7 +17,7 @@ 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 = /result">(?:]*>)?]*>(.*?)<\/a>/im +GOOGLE_WAP_LINK = /"r">(?:]*>)?]*>(.*?)<\/a>/im GOOGLE_CALC_RESULT = %r{.*?]*>(.+?)} GOOGLE_COUNT_RESULT = %r{Results 1<\/b> - 10<\/b> of about (.*)<\/b> for} GOOGLE_DEF_RESULT = %r{onebox_result">\s*(.*?)\s*
\s*(.*?)