There is no way to upload or download files from the local machine using Python Code. This would be useful for the complete automation of technical processes.
You could probably export() as a content item then download() specifying a local path. A bit hacky but would probably work.
This tutorial shows how to download data from a website and upload it to ArcGIS Online as a hosted feature service, using Python.
https://learn.arcgis.com/en/projects/schedule-automated-near-real-time-data-updates/
Not sure what you mean here
Sign in to post, follow content, and more. New here? Register for free.