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://xyz"
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)