Download link for Google Spreadsheets CSV export - with Multiple Sheets

后端 未结 5 937
死守一世寂寞
死守一世寂寞 2020-11-27 10:33

I\'m trying to find a link which allows me to download a CSV formatted version of my Google Spreadsheet. Currently I\'m using:

https://docs.google.com/sprea         


        
5条回答
  •  长情又很酷
    2020-11-27 11:00

    As of November 2020, the most elegant and simplest solution seems to be buried in @jrc's reply:

    https://docs.google.com/spreadsheets/d/KEY/export?format=csv&gid=SHEET_ID

    Here's a live example; given the Google Sheet that has a KEY of 1CTgM1g_aYoWFFpHU6A_qyqWGH0ulCFhs67uAcRVf1Rw

    i.e: https://docs.google.com/spreadsheets/d/1CTgM1g_aYoWFFpHU6A_qyqWGH0ulCFhs67uAcRVf1Rw

    To get the permalink to a CSV export of its first sheet (i.e. gid=0), append: /export?format=csv&gid=0:

    https://docs.google.com/spreadsheets/d/1CTgM1g_aYoWFFpHU6A_qyqWGH0ulCFhs67uAcRVf1Rw/export?format=csv&gid=0

    Note: if you're just exporting the first sheet, i.e. gid=0, then the URL is the same as the URL format posited in the original question, i.e.

    (by default, the endpoint will assume gid=0 if it's left unspecified)

    https://docs.google.com/spreadsheets/d/DOCID/export?format=csv
    

提交回复
热议问题