Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d20b99e

Browse files
committed
fix (google is changing that class r to class "r")
1 parent b8a5a54 commit d20b99e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/utils/google.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def __parsePage(self, page):
5454

5555
matches = []
5656

57-
regExpr = "class=r\076\074a href=\042(http[s]*://.+?)\042\sclass=l"
57+
regExpr = "class=\042?r\042?\076\074a href=\042(http[s]*://.+?)\042\sclass=\042?l\042?"
5858
matches = re.findall(regExpr, page, re.I | re.M)
5959

6060
return matches

0 commit comments

Comments
 (0)