by chaps · 3y ago · 0 comments
Also, here's a tweet-fitting one liner I wrote that downloads all Socrata CSV datasets across all gov instances:
mkfifo f;echo a>f&xargs -E, -a<(cat f) -I{} bash -c "wget http://api.us.socrata.com/api/catalog/v1?scroll_id={} -O-|jq -r '.results[]|.resource.id+"\","\"+.metadata.domain+"\"/api/views/\""+.resource.id+"\"/rows.csv\""'|tee <(cut -d, -f2|xargs wget -P{} --content-disposition)|tail -1"|tee fAnd no, I don't think it's fair to say that the amount of pounds of recycled garbage collected per census tract would be remotely accurate. Too many private companies with private incentives. Just a taste, for example: https://www.wbez.org/stories/bga-investigation-reveals-major...
Also, have a look at the Reporters Committee for the Freedom of Press's FOIA guides per-state. https://www.rcfp.org/open-government-guide/
Do the missteps of Boulder make the case for other municipalities to not pursue open data in a similar way, given FOIA is sufficient?