I want to download one of my google spreadsheet using curl and save it as a .csv file. Following is the command I am using:
(curl --silent --header "Authorization: GoogleLogin auth=AUTH_KEY" https://spreadsheets.google.com/feeds/download/spreadsheets/Export?key=SPREADSHEET_KEY&exportFormat=csv) > a.csv
This is downloading a file which is in pdf format. Can anybody help me in resolving this issue I am stuck with for 1 hr...