This commit is contained in:
Peter Kleiweg
2026-06-10 13:31:55 +02:00
parent d7adc17d4b
commit a8bea0ab44
4 changed files with 10 additions and 10 deletions

View File

@@ -69,8 +69,8 @@ func main() {
root := doc.Root()
divs, err := root.Search(`//div[@class="donatieformlinks"]`)
x(err)
for _, div := range divs {
div.Remove()
for i := len(divs) - 1; i >= 0; i-- {
divs[i].Remove()
}
pp, err := root.Search(`//body//p[not(.//a[contains(@href,"reportersonline.nl/support")])]`)
x(err)