Skip to content

Commit

Permalink
Merge pull request #1941 from ameshkin/WS-465-all-agency-2023
Browse files Browse the repository at this point in the history
WSJ-465: Updating data files with exim bank and updated csv files.
  • Loading branch information
brockfanning authored Jun 13, 2024
2 parents 4cf251e + c70c481 commit 6810fb9
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/xml-datasets/xml-dataset-download.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ set -B
# https://www.foia.gov/foia-dataset-download.html
# USAGE: bash xml-dataset-download.sh <year> <api_key>
# EXAMPLE: bash xml-dataset-download.sh 2023 N4aCuDuJO8Ucf1FTR2EzVPZqo8NsSl1c7YLYOk8N
# CURL: curl -H "X-API-Key: N4aCuDuJO8Ucf1FTR2EzVPZqo8NsSl1c7YLYOk8N" https://api.foia.gov/api/annual-report-xml/ibwc/2022 -o test.xml
# CURL: curl -H "X-API-Key: N4aCuDuJO8Ucf1FTR2EzVPZqo8NsSl1c7YLYOk8N" https://api.foia.gov/api/annual-report-xml/ibwc/2023 -o test.xml

YEAR=$1
API_KEY=$2
Expand Down Expand Up @@ -97,7 +97,7 @@ done

echo -e "Zipping all XML files for the year ${YEAR}... \n"
zip -r -j zips/$YEAR-FOIASetFull.zip files/$YEAR/*.xml
echo -e "Removing all XML files from this directory... \n"
#echo -e "Removing all XML files from this directory... \n"
#rm -r files/$YEAR/*.xml # leave files but use gitignore for testing
duration=$(( SECONDS - start ))
echo -e "You can now manually place the zip files into the www.foia.gov directory..."
Expand Down
Binary file modified www.foia.gov/2023-FOIASetFull.zip
Binary file not shown.
Binary file modified www.foia.gov/downloads/all_agencies_csv_2023.zip
Binary file not shown.

0 comments on commit 6810fb9

Please sign in to comment.