This commit is contained in:
pluja 2024-02-20 15:03:56 +01:00
parent 6b57f6153f
commit 8863f11bcf

View File

@ -75,6 +75,7 @@ func trigerScraping() {
log.Error().Msgf("Service %v has no ToS URL", service.Name)
continue
}
html, err := GetBody(service.TosUrls[0])
if err != nil {
log.Error().Err(err).Msgf("Could not get HTML from %v", service.TosUrls[0])
@ -111,8 +112,6 @@ func trigerScraping() {
continue
}
// clear html
html = ""
// Sleep 1 second
time.Sleep(1 * time.Second)
}