How do I access (read, write) Google Sheets spreadsheets with Python?

前端 未结 8 829
盖世英雄少女心
盖世英雄少女心 2020-11-29 15:41

I am wondering if you can point me to an example of reading/writing to/from a google doc/spreadsheet using python.

I did look at google docs API here https://develo

8条回答
  •  死守一世寂寞
    2020-11-29 16:11

    Have a look at GitHub - gspread.

    I found it to be very easy to use and since you can retrieve a whole column by

    first_col = worksheet.col_values(1)
    

    and a whole row by

    second_row = worksheet.row_values(2)
    

    you can more or less build some basic select ... where ... = ... easily.

提交回复
热议问题