-
Notifications
You must be signed in to change notification settings - Fork 5
/
wget.sh
executable file
·32 lines (27 loc) · 1.65 KB
/
wget.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/bash
START=2014 # First year of data
END=2014 # Last year of data
mkdir -p data/tsa_claims
mkdir -p data/weather
END=`expr ${END} + 1`
while [ $START -lt ${END} ]; do
wget -P data http://tsdata.bts.gov/PREZIP/On_Time_On_Time_Performance_${START}_1.zip
wget -P data http://tsdata.bts.gov/PREZIP/On_Time_On_Time_Performance_${START}_2.zip
wget -P data http://tsdata.bts.gov/PREZIP/On_Time_On_Time_Performance_${START}_3.zip
wget -P data http://tsdata.bts.gov/PREZIP/On_Time_On_Time_Performance_${START}_4.zip
wget -P data http://tsdata.bts.gov/PREZIP/On_Time_On_Time_Performance_${START}_5.zip
wget -P data http://tsdata.bts.gov/PREZIP/On_Time_On_Time_Performance_${START}_6.zip
wget -P data http://tsdata.bts.gov/PREZIP/On_Time_On_Time_Performance_${START}_7.zip
wget -P data http://tsdata.bts.gov/PREZIP/On_Time_On_Time_Performance_${START}_8.zip
wget -P data http://tsdata.bts.gov/PREZIP/On_Time_On_Time_Performance_${START}_9.zip
wget -P data http://tsdata.bts.gov/PREZIP/On_Time_On_Time_Performance_${START}_10.zip
wget -P data http://tsdata.bts.gov/PREZIP/On_Time_On_Time_Performance_${START}_11.zip
wget -P data http://tsdata.bts.gov/PREZIP/On_Time_On_Time_Performance_${START}_12.zip
let START=START+1
done
# TSA CLAIMS DATA
# We use a cleaned version of this data
#wget -P data/tsa_claims https://www.dhs.gov/sites/default/files/publications/claims-2014.xls
#wget -P data/tsa_claims https://www.dhs.gov/sites/default/files/publications/claims-2010-2013_0.xls
#wget -P data/tsa_claims https://www.dhs.gov/sites/default/files/publications/claims-2007-2009_0.xls
#wget -P data/tsa_claims https://www.dhs.gov/sites/default/files/publications/claims-2002-2006_0.xls