From: Giuseppe Bilotta Date: Fri, 31 Aug 2012 18:33:40 +0000 (+0200) Subject: search: update for changes in google's html X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=3a0f8cd85404e5ea99c316deb8b531d6a2407e4e;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git search: update for changes in google's html --- 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*(.*?)