A lightweight Python tool to scrape features from the ArcGIS Server REST API and return a geopandas GeoDataFrame python.
Inspired by the R package esri2sf.
Via conda:
conda install -c controllerphl esri2gpd
Via PyPi:
pip install esri2gpd
import esri2gpd
url = "https://services.arcgis.com/fLeGjb7u4uXqeF9q/ArcGIS/rest/services/Philly_Neighborhoods/FeatureServer/0"
gdf = esri2gpd.get(url, fields=['MAPNAME'], where="MAPNAME='Chestnut Hill'")
gdf.head()