Creating empty spreadsheets in Google Drive using Drive API

后端 未结 5 1625
醉话见心
醉话见心 2020-12-02 19:38

I want to create an empty Google Sheet (created only with metadata) in Google Drive. When I referred to the Google SpreadSheet API documentation, it says to use the Document

5条回答
  •  自闭症患者
    2020-12-02 20:02

    you could also try the pygsheets library i wrote , It ofcourse provies more features than just creating spreadsheets,

    import pygsheets
    
    gc = pygsheets.authorize(outh_file='client_secret.json')
    
    # Open spreadsheet and then worksheet
    gc.create('my new sheet')
    

提交回复
热议问题