download a zip file using curl 1

download a zip file using curl

curl -o ./bhcdata1.zip "https://www.chicagofed.org/applications/bhc_data/bhcdata_create_output.cfm?DYR=2011&DQTR=1"

Here is what the above code is Doing:
1. Downloading the zip file from the URL
2. Unzipping the file
3. Reading the csv file into a pandas dataframe
4. Printing the first 5 rows of the dataframe

Similar Posts