Fix crawler

This commit is contained in:
Senad Uka
2022-02-22 13:23:35 +01:00
parent 0e9956a227
commit 2db4b0b2e2
2 changed files with 1 additions and 1 deletions

View File

@@ -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"
}

BIN
spider

Binary file not shown.