sharepy icon indicating copy to clipboard operation
sharepy copied to clipboard

How to upload data into "Sheet2" instead of "Sheet1"

Open abhishek-lakra opened this issue 3 years ago • 0 comments

import sharepy

s = sharepy.connect("https://xxx.sharepoint.com", username='[email protected]', password='xxx')

with open("file.xlsx", "rb") as file_data:
    try:
        response = s.post(url = "{url of file}", data=file_data)
    except Exception as err:
        print("Some error occurred:",str(err))

From the above code I am able to insert data into spreadsheet but it is inserting into "Sheet1" but I want to insert into "Sheet2". Can someone help me how can I achieve that.

abhishek-lakra avatar Mar 05 '22 08:03 abhishek-lakra