Hello,
I want to download item´s data resource from ArcGIS Online (that you can se in ArcGIS Online Assistant) for the following types:
Web Map, Web Mapping Application, Storymap, Dashboard, QuickCapture, Workforce Project, Map Service and Feature Service.
I have started with Web Map and this is my code:

If I run this in ArcGIS Pro python window and print "item" I get the right information (I can se operational Layers and so on), but if I run this in IDLE I get the item properties.
Could anyone suggest how to fix this and explain why I get different results, please.