I'm trying to download the Chicago Crime stats data (CSV format) from their government website. This is the link for download: https://data.cityofchicago.org/api/views/ijzp-q8t2/rows.csv?accessType=DOWNLOAD,
https://data.cityofchicago.org/api/views/ijzp-q8t2/rows.csv?accessType=DOWNLOAD
but it only works when you copy it to the browser and hit enter.
I am wondering how to download the csv file on terminal? Can I use:
curl -O https://data.cityofchicago.org/api/views/ijzp-q8t2/rows.csv?accessType=DOWNLOAD > Chicago.csv
curl -O https://data.cityofchicago.org/api/views/ijzp-q8t2/rows.csv?accessType=DOWNLOAD > Chicago.csv
I want to save the Chicago.csv to my current work directory on ssh.