Programatically updating a spreadsheet hosted on google docs

前端 未结 6 1787
暖寄归人
暖寄归人 2021-02-01 10:56

I\'ve got a pre-existing spreadsheet hosted on google docs. Each month I update this document. I\'ve got a template workseet in the spreadseet that I\'d like to clone and then

6条回答
  •  天涯浪人
    2021-02-01 11:33

    First of all, I've never worked with Python before - but I'll tell you how I did this in C++.

    I've used cURL to make a GET request to the google documents API. The binary data of the file was returned and I wrote that to a file. Now I had the XLS file and then I used a C/C++ library that could read XLS files to manipulate the downloaded file. The API that I used supported a variety of options; you could do anything that you could do in Excel. After modification I uploaded it again to Google Docs.

提交回复
热议问题