mirror of
https://gitlab.dit.htwk-leipzig.de/fsr-im/tools/flatscraper.git
synced 2026-01-16 12:22:26 +01:00
add scraping functionality for Lipsia and improve error handling for image downloads
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user