Download from Public Google Sheet as CSV

I keep forgetting the syntax for this so here it is:

First part:

https://docs.google.com/spreadsheets/d/

Second part - the spreadsheet ID :

1TXdSG8G_EnCuQITDXCAeAoWiPb9QJaj_q6yPZb-Zw9k

Third part:

/export?format=csv


Put it all together:

https://docs.google.com/spreadsheets/d/1TXdSG8G_EnCuQITDXCAeAoWiPb9QJaj_q6yPZb-Zw9k/export?format=csv


If you want a specific sheet, other than the first from the left, add the gid [&gid=xxxx] to the Third part above.
The gid can be found in the url address bar of the google sheet.

If you just want a range to download, then add, for example: [&range=A2:G] to the Third part above.