'Python Script to upload files from my local drive to a Microsoft OneDrive Location

I am new to python and looking for a solution to upload my JIRA issue excel file stored in my local drive to my OneDrive location . I was able to manage to download the issue list from JIRA to my local drive using the below script. But I am unbale to find a script to upload the file to my OneDrive location

import requests
url = 'https://myurl'
r = requests.get(url, auth=('[email protected]', 'xxxx'))
# open('MyJiraIssues.csv', 'wb').write(r.content)

This is the OneDrive location I am trying to save the files

Let me know if you have any solutions.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source