add scraping functionality for Lipsia and improve error handling for image downloads

This commit is contained in:
Elmar Kresse
2025-01-13 11:57:20 +01:00
parent 1093f49438
commit b2ef4eb5f2
13 changed files with 58 additions and 5 deletions

View File

@@ -27,7 +27,8 @@ def scrape_image(url):
if response.status_code != 200:
print(f"Fehler beim Abrufen von Easysquare: {response.status_code}")
return []
# return empty image
return b''
# get image from response