2020-11-03 jq を使う その他 JSON収集編 集めてみる 技術書典のサークル情報を収集 for _NUM_ in $(seq 2 9); do curl -Lso- "https://techbookfest.org/api/circle?eventID=tbf0${_NUM_}&visibility=site&limit=999&onlyAdoption=true" | ./jq-osx-amd64 -c '.' ; done | tee techbookfest.circlelist.json 集めたリストを再加工して使う 技術書典のサークル情報JSONをCSVにする cat techbookfest.circlelist.json | ./jq-osx-amd64 -r '.list[] | [.event.id, .id, .name, .nameRuby, .penName, .webSiteURL, .genre, .genreFreeFormat] | @csv'