Using this example I am trying to loop through my Arcgis Online account using ArcREST in order to download feature layers locally. However I have not been able to drill down into each folder to acquire each service name with .content in order to run the .exportItem. I can get the folder names but I can't get access to the feature layers in the folders.
import osimport arcpy as envimport arcrestimport arcpyarcpy.env.workspace = r"C:\xxx\temp"uname = "xxx"pword = "xxx"site = "http://xxx.xxx.arcgis.com"sh = arcrest.AGOLTokenSecurityHandler(uname,pword,site)admin = arcrest.manageorg.administration.Administration(securityHandler=sh)content = admin.contentuser = content.users.user(uname)for i in user.folders: print i['title'] print user.items
أكثر...
import osimport arcpy as envimport arcrestimport arcpyarcpy.env.workspace = r"C:\xxx\temp"uname = "xxx"pword = "xxx"site = "http://xxx.xxx.arcgis.com"sh = arcrest.AGOLTokenSecurityHandler(uname,pword,site)admin = arcrest.manageorg.administration.Administration(securityHandler=sh)content = admin.contentuser = content.users.user(uname)for i in user.folders: print i['title'] print user.items
أكثر...