Merge pull request #7 from lucaslrc/master

Update titleText in c.OnHTML from search.go file
This commit is contained in:
pj 2021-03-23 13:40:50 +11:00 committed by GitHub
commit b711a6db5b
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")
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())