bash download's desired data using station ID. I'm failed to find station ID for each city. this is first step. for the next step, we can define a dictionary to hold each city and associated ID so that we can handle the whole thing with city names, but let's focus on finding station ID as first step.
P.S: I tried to use the ID which appears on address bar when you are looking up a city, but it doesn't work. apparently it's a four digit number, 1706 in here belongs to Yellowknife.
bash download's desired data using station ID. I'm failed to find station ID for each city. this is first step. for the next step, we can define a dictionary to hold each city and associated ID so that we can handle the whole thing with city names, but let's focus on finding station ID as first step.
P.S: I tried to use the ID which appears on address bar when you are looking up a city, but it doesn't work. apparently it's a four digit number, 1706 in here belongs to Yellowknife.
for year in
seq 1998 2008
;do for month inseq 1 12
;do wget --content-disposition "http://climate.weather.gc.ca/climate_data/bulk_data_e.html?format=csv& stationID=1706 &Year=${year}&Month=${month}&Day=14&timeframe=1&submit= Download+Data" ;done;done