diff --git a/internal/scraper/scraper.go b/internal/scraper/scraper.go index e825480..deaa6a2 100644 --- a/internal/scraper/scraper.go +++ b/internal/scraper/scraper.go @@ -12,7 +12,7 @@ func extractJustText(el *goquery.Selection) string { } //fmt.Println("Checking: ", htmlPart, "Duzina: ", strconv.Itoa(len(el.Nodes)), " Type je ", el.Nodes[0].Type, " jednakost ", el.Text() == htmlPart) - if len(el.Nodes) == 1 && el.Text() == htmlPart { + if el.Text() == htmlPart { return el.Text() + "\n" } diff --git a/spider b/spider index 6299f26..367849d 100755 Binary files a/spider and b/spider differ