I am trying to scrape all school boundaries from this website. I want to download them in any geo-format, such as .geojson, .kml, or .shp

I figured out that the school boundaries are rendered as <path> attributes. Looking in the source code didn't help.

Does anyone have experience scraping ArcGIS websites, that can give me some hints on how to scrape this ste?

  • 5
    Morally, I feel weird about answering questions about how to "scrap" data. That data is public and can be accessed, but do the data owners want you to do that? I dont know. Anyways, my comfort level starts and stops at pointing you in the right direction: services3.arcgis.com/i9SIJZvRhal6cvaG/arcgis/rest/services/… - nothing more.
    – KHibma
    Commented Jun 7, 2018 at 17:16
  • 1
    web maps are pictures of data for a reason.
    – Ian Turton
    Commented Jun 7, 2018 at 19:32

1 Answer 1


ogr2ogr works great with ESRI REST give it url

ogr2ogr -f GeoJSON Route66.json "http://imgis.nps.gov/arcgis/rest/services/NHT/NHT/MapServer/9/query?where=objectid+%3D+objectid&outfields=*&f=json" OGRGeoJSON -gt 1000

Read the result of a FeatureService request against a GeoServices REST server:

ogrinfo -ro -al "http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Hydrography/Watershed173811/FeatureServer/0/query?where=objectid+%3D+objectid&outfields=*&f=json"

  • 2
    It's not clear from the question that feature services are enabled. If they aren't, then this solution won't work. It's probably best to caveat your answer.
    – Vince
    Commented Jun 7, 2018 at 21:26
  • nice answer, i have never done this. Commented Jun 13, 2018 at 1:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.