This script when run in ArcGIS Online as a Notebook with a scheduled task will update the text file attached to an ArcGIS Online item. This text file is shared publicly and can be consumed by other services.
Components
- The .IPYNB file in this repo (be sure to add a scheduled event on the notebook - if you need it.)
- The ArcGIS Online sample item I used is here. You should create your own
- The output text file on the AGO item above is here [download]. You will make your own by uploading an empty .CSV into your ArcGIS Online organization.
- One way to consume this content is by consuming it in website code. A sample php file is also included in the repo; out-of-the-box produces something like the following. I found the php code on the web and now I can't determine where I got it. My apologies to the author for not giving credit.