Merge pull request #11 from sxueck/master
fix. google result div rules change
This commit is contained in:
commit
32e8e85ffa
@ -313,7 +313,7 @@ func Search(ctx context.Context, searchTerm string, opts ...SearchOptions) ([]Re
|
||||
linkText := strings.TrimSpace(linkHref)
|
||||
titleText := strings.TrimSpace(sel.Find("div > div > a > h3").Text())
|
||||
|
||||
descText := strings.TrimSpace(sel.Find("div > div > div > span > span").Text())
|
||||
descText := strings.TrimSpace(sel.Find("div > div > div > span:last-child").Text())
|
||||
|
||||
if linkText != "" && linkText != "#" {
|
||||
result := Result{
|
||||
|
Loading…
x
Reference in New Issue
Block a user