diff --git a/backend/scraper/breed_enricher.py b/backend/scraper/breed_enricher.py index a2cda17..f08ae65 100644 --- a/backend/scraper/breed_enricher.py +++ b/backend/scraper/breed_enricher.py @@ -174,7 +174,10 @@ async def _fetch_wikimedia_photo(name: str) -> str | None: """Sucht ein lizenzfreies Foto via Wikipedia pageimages API (de → en Fallback).""" for lang in ("de", "en"): try: - async with httpx.AsyncClient(timeout=8) as client: + async with httpx.AsyncClient( + timeout=8, + headers={"User-Agent": "Banyaro/1.0 (https://banyaro.de; mail@banyaro.de) httpx"}, + ) as client: resp = await client.get( f"https://{lang}.wikipedia.org/w/api.php", params={