Skip to content

Commit

Permalink
Add Streetchanged request
Browse files Browse the repository at this point in the history
  • Loading branch information
ReneNulschDE committed Oct 30, 2024
1 parent 1c520c7 commit 1652ed0
Showing 1 changed file with 13 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,6 @@ def fetch(self):
)
r.raise_for_status()
r.encoding = "utf-8"
with open("test1.html", "w") as f:
f.write(r.text)

parser = HiddenInputParser()
parser.feed(r.text)
Expand All @@ -101,16 +99,26 @@ def fetch(self):
)
r.raise_for_status()

args = parser.args
args["Ort"] = self._city
args["Strasse"] = self._street
args["Hausnummer"] = str(self._hnr)
args["Method"] = "POST"
args["SubmitAction"] = "STREETCHANGED"
args["Focus"] = "Strasse"
r = session.post(SERVLET, data=args)
r.raise_for_status()

args["SubmitAction"] = "forward"
r = session.post(
SERVLET,
data=args,
)
r.raise_for_status()

args[
"ApplicationName"
] = "com.athos.kd.lueneburg.WasteDisposalServicesBusinessCase"
args["ApplicationName"] = (
"com.athos.kd.lueneburg.WasteDisposalServicesBusinessCase"
)
args["SubmitAction"] = "filedownload_ICAL"
args["IsLastPage"] = "true"
args["Method"] = "POST"
Expand Down

0 comments on commit 1652ed0

Please sign in to comment.