Skip to content

Instantly share code, notes, and snippets.

@Kambaa
Last active November 27, 2021 16:07
Show Gist options
  • Save Kambaa/068538d59f9e5ea82d3ce5928adb0a00 to your computer and use it in GitHub Desktop.
Save Kambaa/068538d59f9e5ea82d3ce5928adb0a00 to your computer and use it in GitHub Desktop.
Pawır Şell'den Veri çekme Denemesi v.0.0.1
$urlPrefix="https://maps2.dcgis.dc.gov/dcgis/rest/services/DCGIS_DATA/Violations_Moving_2020/MapServer/2/query?where=1%3D1&outFields=*&returnGeometry=false&outSR=4326&f=json&resultOffset="
$fileName="C:\Users\NEW\Desktop\test\data"
for (($i = 0); $i -lt 145; $i++)
{
$u=$urlPrefix+ ($i+1)*1000;
$x=($i+1);
$f="$fileName$x.json";
curl.exe -o $f $u;
echo "Dosya'ya kaydedildi:$f";
}
pause;
#Set-ExecutionPolicy -ExecutionPolicy Undefined -Scope CurrentUser
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment