AnsweredAssumed Answered

export content.search results to excel

Question asked by s318943_AEPGIS on Mar 5, 2020
Latest reply on Sep 18, 2020 by Adityaraj_Chavada

how do i export the results of the search to excel?  In the export i would want username, modified date, created date and view count

 

 

import arcgis
from arcgis.gis import GIS


portal = "https://xxxxx"


gis = GIS(portal, "username", "password", verify_cert=False)
print ("Connected")

 

items = gis.content.search(query="owner: s*",item_type='', sort_field="numViews", sort_order= "asc", max_items=5000, outside_org=False)
for item in items:
display(item)

Outcomes