Skip to content

Commit

Permalink
Merge pull request #32 from datamade/feature/27-expenditure
Browse files Browse the repository at this point in the history
Upload excel file of independent expenditures to S3
  • Loading branch information
antidipyramid committed Sep 26, 2024
2 parents 089c730 + c37c58b commit 75067e8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ all : data/processed/disclosures.xlsx \
data/processed/candidate_committee_filings.csv \
data/processed/pac_committees.csv \
data/processed/pac_committee_filings.csv \
data/processed/independent_expenditures.csv
data/processed/independent_expenditures.xlsx

upload-to-s3 : data/processed/disclosures.xlsx \
data/processed/candidate_committees.csv \
data/processed/candidate_committee_filings.csv \
data/processed/pac_committees.csv \
data/processed/pac_committee_filings.csv \
data/processed/independent_expenditures.csv
data/processed/independent_expenditures.xlsx

for file in $^; do aws s3 cp $$file $(S3BUCKET) --acl public-read; done

Expand Down
8 changes: 6 additions & 2 deletions independent_expenditures.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
.PHONY: independent_expenditures
independent_expenditures : data/processed/independent_expenditures.csv
independent_expenditures : data/processed/independent_expenditures.xlsx

data/processed/independent_expenditures.csv :

data/processed/independent_expenditures.xlsx : data/intermediate/independent_expenditures.csv
python scripts/to_excel.py $^ $@

data/intermediate/independent_expenditures.csv :
python -m scrapers.financial_disclosure.scrape_independent_expenditures > $@

0 comments on commit 75067e8

Please sign in to comment.