Change the file to "executable" with chmod 755 downloadAll, then type. bhcdata1.zip ""īONUS to get all four quarters, you can simply put the following lines in a script. You might find you need the -k flag as well… although I didn't need to on my machine. I found a file named bhcdata1.zip in my directory when I was done: -rw-r-r- 1 floris floris 1545868 Feb 13 21:05 bhcdata1.zip I simplified the URL to a specific quarter only.I only specified the output file - with no quotes and with forward slash.On my machine, the following command worked just fine: curl -o. I've tried with and without various combinations of options, but nothing has worked yet. The in the example command above would grab all four quarters in one year, but I'd be fine with just getting one quarter at a time, and I've tried replacing 1 as well. I want to do this for all quarters, so I need a way to write the command for each quarter so that I can loop over them. To clarify exactly what I'm trying to do: The Chicago Fed website lets you enter a year and quarter, and you click "Download data file" and it gives you a. Is there a straightforward way to do this? The command above is in fact provided in the documentation by the Chicago Fed, and yet it throws error messages on my Ubuntu machine: curl: option -klo: is unknown. The first thing I tried was this: curl -klo ".\bhcdata#1.zip" "" ![]() ![]() I've been somewhat blindly trying lots of variations of curl and wget to try downloading some.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |