Download google docs public spreadsheet to csv with python

前端 未结 4 1810
北荒
北荒 2020-12-14 22:19

I can download a CSV file from Google Docs with wget:

wget --no-check-certificate --output-document=locations.csv \'https://docs.google.com/spre         


        
4条回答
  •  無奈伤痛
    2020-12-14 22:55

    i would use requests

    import requests
    r = requests.get('https://docs.google.com/spreadsheet/ccc?key=0ArM5yzzCw9IZdEdLWlpHT1FCcUpYQ2RjWmZYWmNwbXc&output=csv')
    data = r.content
    

提交回复
热议问题