]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
search: Google changed their WAP address
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Fri, 12 Jun 2009 08:20:01 +0000 (10:20 +0200)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Fri, 12 Jun 2009 08:20:01 +0000 (10:20 +0200)
data/rbot/plugins/search.rb

index cf74e0e37b5e42357304eb380fb76d2dee28d4c7..3b0fac5fed866344a32958c2dc0ea133cdfa7829 100644 (file)
@@ -16,7 +16,7 @@
 #        for most languages
 
 GOOGLE_SEARCH = "http://www.google.com/search?oe=UTF-8&q="
-GOOGLE_WAP_SEARCH = "http://www.google.com/wml/search?hl=en&q="
+GOOGLE_WAP_SEARCH = "http://www.google.com/m/search?hl=en&q="
 GOOGLE_WAP_LINK = /<a accesskey="(\d)" href=".*?u=(.*?)">(.*?)<\/a>/im
 GOOGLE_CALC_RESULT = %r{<img src=/images/calc_img\.gif(?: width=40 height=30 alt="")?>.*?<h2 class=r[^>]*><b>(.+?)</b>}
 GOOGLE_COUNT_RESULT = %r{<font size=-1>Results <b>1<\/b> - <b>10<\/b> of about <b>(.*)<\/b> for}