Last active
March 2, 2022 18:45
-
-
Save domoritz/894a85c2660d99eb05847770cc5c478f to your computer and use it in GitHub Desktop.
Download Flight Data from https://www.transtats.bts.gov/DL_SelectFields.asp?gnoyr_VQ=FGJ
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
wget https://transtats.bts.gov/PREZIP/$1 --quiet --no-check-certificate | |
unzip -q -o $1 | |
rm $1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
bash file_list.sh > url.list | |
cat url.list | parallel -j 8 --progress --eta ./download.sh {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
for y in {1987..2021} | |
do | |
for i in {1..12} | |
do | |
echo "On_Time_Reporting_Carrier_On_Time_Performance_1987_present_${y}_${i}.zip" | |
done | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment