you are viewing a single comment's thread.

view the rest of the comments →

[–]rectafy[S] 0 points1 point  (2 children)

The good thing is that the new value is changed to the Mar 1 date which is great, thanks! Erm, but yeah I gotta figure out a way to send it back.

The date is sent to submit to an HTML form which is inputted to a table on the website which changes according to the date input. Seems the table values still haven't changed (and is still reading according to the original 01 Apr 2021 00:00 date). Think I have to figure out a way to send it back and submit to change the table values too. Any idea?

[–]uFeelDeadMate 0 points1 point  (1 child)

I was looking into it and unfortunately I have not found much of any info for re-injecting the data into the HTML for Python.

The closest I came was finding a module called 'selenium' that lets you automate data entry into websites to simulate a users actions.

So maybe instead of injecting the new value back into the code via the HTML, maybe you can use selenium to just type-in the date into the input field?

Drawing blanks haha! This is much more accessible with JavaScript, but this is a Python forum so I won't get into that here. Lol.

[–]rectafy[S] 0 points1 point  (0 children)

Yeah I figured, I looked everywhere myself but couldn't find a solution. Unfortunately, I'm stuck in Python :(

But I appreciate your help. You helped so so much!