Fix Google.calc ... Google changed their HTML

This commit is contained in:
James Vega 2007-04-25 19:06:33 +00:00
parent 680473b015
commit a8a7ec56d1

View File

@ -367,7 +367,7 @@ class Google(callbacks.PluginRegexp):
url = r'http://google.com/search?q=' + s url = r'http://google.com/search?q=' + s
return url return url
_calcRe = re.compile(r'<td nowrap><font size=\+1><b>(.*?)</b>', re.I) _calcRe = re.compile(r'<font size=\+1><b>(.*?)</b>', re.I)
_calcSupRe = re.compile(r'<sup>(.*?)</sup>', re.I) _calcSupRe = re.compile(r'<sup>(.*?)</sup>', re.I)
_calcFontRe = re.compile(r'<font size=-2>(.*?)</font>') _calcFontRe = re.compile(r'<font size=-2>(.*?)</font>')
_calcTimesRe = re.compile(r'&(?:times|#215);') _calcTimesRe = re.compile(r'&(?:times|#215);')