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