X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;ds=sidebyside;f=data%2Frbot%2Fplugins%2Fgooglefight.rb;h=da156fda4e95047b36070fc28b7be1e84247876f;hb=db97054c4ecdb228f313df5a3a0191aff9745a88;hp=7fc748c0f1670f87bad244ac2664505429e081c5;hpb=c32c3ef9180dcf4dc22829f1795b666da06008bf;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git diff --git a/data/rbot/plugins/googlefight.rb b/data/rbot/plugins/googlefight.rb old mode 100755 new mode 100644 index 7fc748c0..da156fda --- a/data/rbot/plugins/googlefight.rb +++ b/data/rbot/plugins/googlefight.rb @@ -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{of about ([\d,]+)<\/b>}) + res = html.scan(%r{About ([\d,]+) results}) res[0][0].to_s.tr(",", "").to_i end end