Update search.go
This commit is contained in:
parent
851e204f54
commit
aaf8c77b45
@ -313,7 +313,7 @@ func Search(ctx context.Context, searchTerm string, opts ...SearchOptions) ([]Re
|
|||||||
linkText := strings.TrimSpace(linkHref)
|
linkText := strings.TrimSpace(linkHref)
|
||||||
titleText := strings.TrimSpace(sel.Find("div > div > a > h3").Text())
|
titleText := strings.TrimSpace(sel.Find("div > div > a > h3").Text())
|
||||||
|
|
||||||
descText := strings.TrimSpace(sel.Find("div > div > div > span").Text())
|
descText := strings.TrimSpace(sel.Find("div > div > div > span:last-child").Text())
|
||||||
|
|
||||||
if linkText != "" && linkText != "#" {
|
if linkText != "" && linkText != "#" {
|
||||||
result := Result{
|
result := Result{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user