Compare commits

..

1 Commits

Author SHA1 Message Date
T. von Dein
d9f2f0a712 Fix scraping multiple ads (#126)
Upstream has changed their content generation system. When using the same http client, the first page looks as we expect it, but subsequent pages look totally different. I can't find out why that is, but it's not an issue of this tool.

So, the "fix" is to abandon client reuse and re-initialize a new client for every http request. However, the image fetcher keeps resusing the client.

Co-authored-by: Thomas von Dein <tom@vondein.org>
Reviewed-on: https://codeberg.org/scip/kleingebaeck/pulls/126
2026-10-12 21:29:49 +02:00
2 changed files with 2 additions and 2 deletions

View File

@@ -1,4 +1,4 @@
FROM golang:1.24-alpine as builder
FROM golang:1.26-alpine as builder
RUN apk update
RUN apk upgrade

View File

@@ -34,7 +34,7 @@ import (
)
const (
VERSION string = "0.3.24"
VERSION string = "0.3.25"
Baseuri string = "https://www.kleinanzeigen.de"
Listuri string = "/s-bestandsliste.html"
Defaultdir string = "."