From d7adc17d4b364f4b279ed286c3e3e8972a6e366d Mon Sep 17 00:00:00 2001 From: Peter Kleiweg Date: Tue, 9 Jun 2026 18:37:19 +0200 Subject: [PATCH] Volkskrant: columns hebben geen intro --- Volkskrant/cmd/volkskrant/volkskrant.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Volkskrant/cmd/volkskrant/volkskrant.go b/Volkskrant/cmd/volkskrant/volkskrant.go index 121b69d..0e25ffe 100644 --- a/Volkskrant/cmd/volkskrant/volkskrant.go +++ b/Volkskrant/cmd/volkskrant/volkskrant.go @@ -280,6 +280,7 @@ func doArticle(filename string, url string, title string, timestamp time.Time, n header := headers[0] isOpinie := false + isColumn := false tags := make([]string, 0) ell, err := header.Search(`.//*[@data-test-id="article-label"]`) p(err) @@ -291,8 +292,10 @@ func doArticle(filename string, url string, title string, timestamp time.Time, n if s != "" && s != "Nieuws" { tags = append(tags, s) } - if strings.ToLower(s) == "opinie" { + if s1 := strings.ToLower(s); s1 == "opinie" { isOpinie = true + } else if s1 == "column" { + isColumn = true } } @@ -308,7 +311,7 @@ func doArticle(filename string, url string, title string, timestamp time.Time, n found = true } } - if !found && !isOpinie { + if !found && !isOpinie && !isColumn { _ = w(fmt.Errorf("no intro: %s", url)) }