def print_view_items(ctx):
    'Example demonstrates how to retrieve View items'
    list_object = ctx.web.lists.get_by_title(list_title)
    view = list_object.views.get_by_title(view_title)
    ctx.load(view, ['ViewQuery'])
    ctx.execute_query()
    view_fields = view.view_fields
    ctx.load(view_fields)
    ctx.execute_query()
    qry = CamlQuery()
    qry.ViewXml = '<View><Where>{0}</Where></View>'.format(view.properties['ViewQuery'])
    items = list_object.get_items(qry)
    ctx.load(items)
    ctx.execute_query()
    for item in items:
        print('Item title: {0}'.format(item.properties['Title']))
Example demonstrates how to retrieve View items
def print_view_items(ctx):
    
    list_object = ctx.web.lists.get_by_title(list_title)
    view = list_object.views.get_by_title(view_title)
    ctx.load(view, ['ViewQuery'])
    ctx.execute_query()
    view_fields = view.view_fields
    ctx.load(view_fields)
    ctx.execute_query()
    qry = CamlQuery()
    qry.ViewXml = '<View><Where>{0}</Where></View>'.format(view.properties['ViewQuery'])
    items = list_object.get_items(qry)
    ctx.load(items)
    ctx.execute_query()
    for item in items:
        print('Item title: {0}'.format(item.properties['Title']))