I'm looking for some guidance as I'm having trouble finding any answers when I search, as well as struggling to formulate what I actually want into search terms.
In short, I currently have a Python script that will take an excel spreadsheet containing 2 columns, 1 containing a number, the other containing a string. It then uses Selenium and chromedriver to log in to a website, enter the number from column 1, do some more clicking and then add the note from column 2. It loops through all of the numbers in Column 1 to do this.
The script works perfectly but I need to share it with some colleagues and I figure the best way to do that would be to create a web app using Django that they can upload the excel or csv file to, but I'm struggling to figure out how I would then get the script to run and use the data from the uploaded file.
- When a user uploads the file, how do I then get this to start the Python script?
- How do i then post the results of the script, i.e, whether it successfully added a note for each number, back to the uploader? Is this something that can be done in live time on the web page or would it be better to e-mail the uploader with the results once complete? (I currently have it logging to a .txt file, as well as sending me a Telegram message once it's completed with details of success/failures.)
Any guidance or a point in the right direction would be greatly appreciated.
Thanks in advance.