Update search.go

This commit is contained in:
Lucas R. Costa 2021-03-21 22:54:36 -03:00 committed by GitHub
parent 14d80b5b0d
commit 4675f35a76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -305,7 +305,7 @@ func Search(ctx context.Context, searchTerm string, opts ...SearchOptions) ([]Re
linkHref, _ := sel.Find("a").Attr("href") linkHref, _ := sel.Find("a").Attr("href")
linkText := strings.TrimSpace(linkHref) linkText := strings.TrimSpace(linkHref)
titleText := strings.TrimSpace(sel.Find("div > div > a > h3 > span").Text()) 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 > span").Text())