]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/blobdiff - data/rbot/plugins/googlefight.rb
quiz: stop quizzes and timers on cleanup
[user/henk/code/ruby/rbot.git] / data / rbot / plugins / googlefight.rb
index 0b9393ef0c67c975aa97b61a9c31315fc3b24bbc..894d2233cdae37c17ccb9131dfc6c597778fee7a 100755 (executable)
@@ -54,7 +54,7 @@ class GoogleFightPlugin < Plugin
   def google_count(query)
     url  = 'http://www.google.com/search?hl=en&safe=off&btnG=Search&q=' << CGI.escape(query)
     html = Net::HTTP.get(URI.parse((url)))
-    res  = html.scan(%r{Results <b>1</b> - <b>\d+</b> of(?: about)? <b>([\d,]+)</b>})
+    res  = html.scan(%r{>About ([\d,]+) results<nobr>})
     res.to_s.tr(",", "").to_i
   end
 end