Skip to content
This repository has been archived by the owner on Nov 10, 2020. It is now read-only.

Commit

Permalink
raw BLS input files for all extractives
Browse files Browse the repository at this point in the history
  • Loading branch information
Shawn Allen committed Dec 1, 2015
1 parent 018b20f commit e8903bc
Show file tree
Hide file tree
Showing 11 changed files with 30,282 additions and 0 deletions.
2,994 changes: 2,994 additions & 0 deletions data/_input/bls/2004.csv

Large diffs are not rendered by default.

3,005 changes: 3,005 additions & 0 deletions data/_input/bls/2005.csv

Large diffs are not rendered by default.

3,023 changes: 3,023 additions & 0 deletions data/_input/bls/2006.csv

Large diffs are not rendered by default.

3,029 changes: 3,029 additions & 0 deletions data/_input/bls/2007.csv

Large diffs are not rendered by default.

3,044 changes: 3,044 additions & 0 deletions data/_input/bls/2008.csv

Large diffs are not rendered by default.

3,027 changes: 3,027 additions & 0 deletions data/_input/bls/2009.csv

Large diffs are not rendered by default.

3,028 changes: 3,028 additions & 0 deletions data/_input/bls/2010.csv

Large diffs are not rendered by default.

3,030 changes: 3,030 additions & 0 deletions data/_input/bls/2011.csv

Large diffs are not rendered by default.

3,032 changes: 3,032 additions & 0 deletions data/_input/bls/2012.csv

Large diffs are not rendered by default.

3,051 changes: 3,051 additions & 0 deletions data/_input/bls/2013.csv

Large diffs are not rendered by default.

19 changes: 19 additions & 0 deletions data/_input/bls/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
years ?= 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013
zips = $(foreach year,$(years),$(year).zip)
csvs = $(foreach year,$(years),$(year).csv)

all: $(csvs)

%.zip:
curl "http://www.bls.gov/cew/data/files/$*/csv/$*_annual_by_industry.zip" -o $@

%.csv: %.zip
unzip $< '*.annual 21 *.csv'
mv $*.annual.by_industry/*.csv $@
rm -r $*.annual.by_industry

distclean: clean
rm -f *.zip

clean:
rm -f *.csv

0 comments on commit e8903bc

Please sign in to comment.