Here's a video for you to watch the accomplishment of my code ------>(https://youtu.be/T9DVo9yyNSI) (the video is unlisted).
selenium,pyautogui,time modules.
How to install on Linux...
You are required to download the Chrome Driver from https://chromedriver.storage.googleapis.com/index.html?path=89.0.4389.23/ .
Install Selenium using the pip3 install selenium ( Check this out if you are stuck anywhere--->(https://youtu.be/67h3IT2lm40)).
Install pyautogui using python3 -m pip install pyautogui .
This is an incomplete project which was used to upload any file to your onedrive business account. (Yes there are api's for it,but your administrator might not allow you to create an application for your business account.)
The code manages to open the Open File Dialog Box for you to select the required file to upload it on to your ondrive .(90% of the code is done)
Further modificitaions can be made to the code such that when provided with the login credentials and the file path, the code can manage to upload the specified file automatically.
At the very least,the code can be used as very simple password manager which autlogin's you to your accounts whith small modifications.
You can combine the code with javascript to overcome the Open File Dialog Box. Check this out --->(https://stackoverflow.com/questions/62211837/how-to-avoid-the-open-file-dialog-box-by-uploading-the-file-directly-with-python/62219380#62219380).