Update URL for v1 API, Update input instructions
This commit is contained in:
parent
0ae08ec194
commit
121db62090
4
main.py
4
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
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user