Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

curl command #2

Open
vr00n opened this issue Jun 3, 2017 · 0 comments
Open

curl command #2

vr00n opened this issue Jun 3, 2017 · 0 comments

Comments

@vr00n
Copy link
Member

vr00n commented Jun 3, 2017

this uses csvkit

#!/bin/bash
for i in `seq 22918 31032`
do
echo $i
curl -s "https://nycstreets.net/Public/Permit/SearchPermits/?PermitNumber=M&rows=1000&sidx=PermitIssueDateFrom&sord=asc&LocationSearchType=0&page=${i}" | in2csv --key PermitList -H -f json -v >>csvkit-result-MASTER.csv
done



Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant