Hello,
I have a notebook within AGO that prints all the public facing content within my organization. The results are formatted to be comma delimited to make it easy to import into an excel spreadsheet to share. Is it possible to directly export the results of this script to an excel file?
Thanks.
Script:
from arcgis.gis import GIS
gis = GIS("home")
from IPython.display import display
my_content = gis.content.search(query="owner:USERNAME",max_items=10000)
#item_types_need = ['Web Map','Web Mapping Application','StoryMap','Dashboard','Web Experience','Form']
item_types_need = ['Feature Service']
for item in my_content:
if item.type in item_types_need:
if item.content_status == "public_authoritative":
author = "Authoritative"
else:
author = "None"
if item.shared_with['everyone']== True:
print(""'"{}"'",{},{},{}".format(item.title,item.id,item.type,author))
#display(item)
print("Completed")