Closed kinverarity1 closed 4 years ago
Here is how to do it manually:
import io, requests
import pandas as pd
wls = requests.post(
"GetWaterLevelDownload?bulkOutput=CSV",
data={"exportdata": json.dumps({"DHNOs": [str(d) for d in dhnos]})},
)
with io.BytesIO(wls.response.content) as buffer:
df = pd.read_csv(buffer)
Completed and released in v0.10.0
They don't have all the data but they're a damn sight quicker than doing individual requests.
e.g. https://www.waterconnect.sa.gov.au/_layouts/15/dfw.sharepoint.wdd/WDDDMS.ashx/GetWaterLevelDownload?bulkOutput=CSV
In the POST content the key
exportdata
appears to have string-encoded JSON:August update:
The full list of bulk data service names: