From d20b99ed6557c50f074a72585a72cb51bab7e4d5 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Sat, 15 May 2010 21:51:31 +0000 Subject: [PATCH] fix (google is changing that class r to class "r") --- lib/utils/google.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils/google.py b/lib/utils/google.py index 61d1b3695..615b4a1f1 100644 --- a/lib/utils/google.py +++ b/lib/utils/google.py @@ -54,7 +54,7 @@ class Google: matches = [] - regExpr = "class=r\076\074a href=\042(http[s]*://.+?)\042\sclass=l" + regExpr = "class=\042?r\042?\076\074a href=\042(http[s]*://.+?)\042\sclass=\042?l\042?" matches = re.findall(regExpr, page, re.I | re.M) return matches