From 121db62090ccb00622d8f4b368adb9081f58e5d4 Mon Sep 17 00:00:00 2001 From: gilex-dev Date: Sun, 28 Dec 2025 22:27:06 +0100 Subject: [PATCH] Update URL for v1 API, Update input instructions --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 211108c..596a189 100644 --- a/main.py +++ b/main.py @@ -7,7 +7,7 @@ from datetime import datetime, timedelta def download_entries_v1(): base_request = input( - "Search for \"berichtswoche?\" and select the second result. Copy as cURL and paste here\nDepending on your terminal running this in, you might need to replace any \\n (or \\\\\\n) with '' before pasting, as \\n can trigger the end of the input reading: ") + "Search for \"berichtswoche?\" and select the result initiated by 'polyfills*'. Copy as cURL and paste here\nDepending on your browser / terminal running this in, you might need to replace any \\, \\n (or \\\\\\n) with '' before pasting, as \\n can trigger the end of the input reading: ") start_date = datetime.strptime(input("enter start date to download (yyyy-mm-dd): "), "%Y-%m-%d") end_date = input("enter end date to download (yyyy-mm-dd): ") @@ -17,7 +17,7 @@ def download_entries_v1(): else: end_date = datetime.strptime(end_date, "%Y-%m-%d") - regex = r"(.*)(https:\/\/digbe\.services\.ihk\.de\/digitales-berichtsheft\/erstellen-api\/v1\/berichtswoche\?datum=)([0-9]*-[0-9]{2}-[0-9]{2})(.*)" + regex = r"(.*)(https:\/\/bildung\.service\.ihk\.de\/berichtsheft\/erstellen-api\/v1\/berichtswoche\?datum=)([0-9]*-[0-9]{2}-[0-9]{2})(.*)" current_date = start_date