Select to view content in your preferred language

Download files automatically from the arcgis online notebook folder

1800
2
Jump to solution
11-15-2022 01:48 AM
Airquality
New Contributor

Hi

I want to export the table of a hosted feature layer as csv to my local drive. I run my script directly on ArcGIS online. I managed to create a spatial dataframe and save it as csv at the /arcgis folder.

Airquality_0-1668505121117.png

 

But from there I have to download the file manually. Is there a way to access the csv with a notebook and download it automatically?

0 Kudos
1 Solution

Accepted Solutions
AdminWPZ
Occasional Contributor

As far as I know there is no possibility to connect from AGOL to your desktop, but it does work the other way round, connecting your desktop to AGOL:

  • set up Jupyter Notebook (you should have it if you use ArcGIS Pro) on your desktop
  • connect to AGOL with your Admin account
  • download the files to the folder you want them
  • delete the backup file on AGOL

You can automize the task by 1) automizing the notebook on AGOL and 2) automizing the Jupyter notebook with Windows Tasks on your desktop, timing it slightly later or during your work time.

Let me know if this works for you or if you need help with the code.

 

View solution in original post

0 Kudos
2 Replies
AdminWPZ
Occasional Contributor

As far as I know there is no possibility to connect from AGOL to your desktop, but it does work the other way round, connecting your desktop to AGOL:

  • set up Jupyter Notebook (you should have it if you use ArcGIS Pro) on your desktop
  • connect to AGOL with your Admin account
  • download the files to the folder you want them
  • delete the backup file on AGOL

You can automize the task by 1) automizing the notebook on AGOL and 2) automizing the Jupyter notebook with Windows Tasks on your desktop, timing it slightly later or during your work time.

Let me know if this works for you or if you need help with the code.

 

0 Kudos
Airquality
New Contributor

Thanks, I will try it that way.

0 Kudos