[SimBot-commits] CVS: simbot/plugins google.pl,1.21,1.22
Status: Abandoned
Brought to you by:
kstange
|
From: Kevin S. <ks...@us...> - 2008-04-29 06:21:11
|
Update of /cvsroot/simbot/simbot/plugins In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv8723 Modified Files: google.pl Log Message: Google changed the calculator HTML a bit. This is a reminder why this is the wrong way to get this information out of google. Maybe someday I'll get around to actually coding again... :) Index: google.pl =================================================================== RCS file: /cvsroot/simbot/simbot/plugins/google.pl,v retrieving revision 1.21 retrieving revision 1.22 diff -u -d -p -r1.21 -r1.22 --- google.pl 10 Nov 2005 13:02:15 -0000 1.21 +++ google.pl 29 Apr 2008 06:21:07 -0000 1.22 @@ -59,7 +59,7 @@ sub google_find { } elsif (!$response->is_error) { # Let's use the calculator! if ($response->content =~ m|/images/calc_img\.gif|) { - $response->content =~ m|<td nowrap><font size=\+1><b>(.*?)</b></td>|; + $response->content =~ m|<td nowrap><h2 class=r><font size=\+1><b>(.*?)</b></h2></td>|; # We can't just take $1 because it might have HTML in it my $result = $1; $result =~ s|<sup>(.*?)</sup>|^$1|g; |