Update URL for v1 API, Update input instructions

This commit is contained in:
gilex-dev 2025-12-28 22:27:06 +01:00
parent 0ae08ec194
commit 121db62090
Signed by: gilex-dev
GPG Key ID: 2D0B00263B5D1323

View File

@ -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