14 lines
461 B
Makefile
14 lines
461 B
Makefile
run:
|
|
go run main.go
|
|
|
|
save:
|
|
go run main.go > "out/output-$$(date +"%Y-%m-%d").txt"
|
|
|
|
polls:
|
|
mkdir -p data/polls
|
|
rm data/polls/president_polls.csv
|
|
cd data/polls && wget https://projects.fivethirtyeight.com/polls/data/president_polls.csv
|
|
cat data/polls/president_polls.csv | awk -F, 'NR==1 {print; next} $$13 != ""' > data/polls/president_polls_state.csv
|
|
# cd data/polls && awk -F, 'NR == 1 || $13 != ""' president_polls.csv > president_polls_state.csv
|
|
|