根据列值从 dynamodb 访问值 - python

Accessing values from dynamodb based on a column value - python

我有一个发电机数据库table,列名url,数据,日期和实体

    url                       data                    date                    entity
 https://www.google.com     search engine             21-09-2021                Website

我试图通过使用 url 列中的值作为搜索标记来访问数据列中的值。怎么做到的。

请问你用的是这种方式吗?

    import boto3
    from boto3.dynamodb.conditions import Key
    response = table.query(
      KeyConditionExpression=Key('url').eq('https://www.google.com')
    )
    print(response['data'])