#!/bin/sh # Downloads every raw input into data/raw/. Run from the project root: sh research/download.sh # BLS refuses requests that don't look like a browser, hence the headers. set -e mkdir -p data/raw && cd data/raw UA="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36" for y in 19 20 21 22 23 24 25; do curl -sfL -A "$UA" -H "Accept: text/html,*/*;q=0.8" -H "Accept-Language: en-US,en;q=0.9" \ -H "Referer: https://www.bls.gov/oes/tables.htm" -H "Sec-Fetch-Dest: document" \ -H "Sec-Fetch-Mode: navigate" -H "Sec-Fetch-Site: same-origin" --compressed \ -o "oesm${y}nat.zip" "https://www.bls.gov/oes/special-requests/oesm${y}nat.zip" unzip -o -q "oesm${y}nat.zip" sleep 2 done curl -sfL -o gpts_occ.csv https://raw.githubusercontent.com/openai/GPTs-are-GPTs/main/data/occ_level.csv AEI=https://huggingface.co/datasets/Anthropic/EconomicIndex/resolve/main/labor_market_impacts curl -sfL -o job_exposure.csv "$AEI/job_exposure.csv" curl -sfL -o task_penetration.csv "$AEI/task_penetration.csv" curl -sfL -A "$UA" -o onet_db.zip https://www.onetcenter.org/dl_files/database/db_30_0_text.zip unzip -o -q onet_db.zip "db_30_0_text/Occupation Data.txt" "db_30_0_text/Task Statements.txt" "db_30_0_text/Alternate Titles.txt" echo "done"