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

Skip to content

Commit e8bef28

Browse files
committed
updating google parsing regex (for the better, of course)
1 parent d97e97d commit e8bef28

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
@@ -45,7 +45,7 @@ def __parsePage(self, page):
4545

4646
matches = []
4747

48-
regExpr = "li class=\042?g\042?\076.+?a href=\042(http[s]*://.+?)\042\sclass=\042?l\042?"
48+
regExpr = r'h3 class="?r"?><a href="(http[s]*://.+?)"\sclass="?l"?'
4949
matches = re.findall(regExpr, page, re.I | re.M)
5050

5151
return matches

0 commit comments

Comments
 (0)