Python中的Freebase日志

Python中的Freebase日志,python,login,freebase,Python,Login,Freebase,我是自由基的新手。可能是一个简单的答案,但我似乎无法理解freebase API。我尝试使用命令queryResult=freebase.mqlread(queryFB)运行一个简单的查询我得到下面的错误。我还没有登录到API。我创建了一个帐户,这是一个谷歌帐户。我的问题是当我调用freebase.login(用户名、密码)时我使用什么?谷歌账户详情?我也附上我的问题 查询: { "type": "/food/dish", "id": dish, "name": None

我是自由基的新手。可能是一个简单的答案,但我似乎无法理解freebase API。我尝试使用命令
queryResult=freebase.mqlread(queryFB)运行一个简单的查询我得到下面的错误。我还没有登录到API。我创建了一个帐户,这是一个谷歌帐户。我的问题是当我调用
freebase.login(用户名、密码)时我使用什么?谷歌账户详情?我也附上我的问题

查询:

{
    "type": "/food/dish",
    "id": dish,
    "name": None,
    "cuisine": 
    [{
        "id": None,
        "name": None,
        "region_of_origin": 
        [{
            "id": None,
            "name": None,
            "/location/location/contains": 
            [{
                "id": None,
                "name": city,
                "type": "/location/citytown",
                "limit": 20
            }]
        }],
        "optional": "optional"
    }],
    "type_of_dish1": 
    [{
        "id": None,
        "name": None,
        "optional": "optional"
    }]
}
错误:

{
"error": 
    {
    "errors": 
    [
        {
            "domain": "usageLimits",
            "reason": "userRateLimitExceededUnreg",
            "message": "User Rate Limit Exceeded. Please sign up",
            "extendedHelp": "https://code.google.com/apis/console"
        }
    ],
    "code": 403,
    "message": "User Rate Limit Exceeded. Please sign up"
    }
}

听起来您可能正在使用过时的客户端库和/或API。当前API不使用用户名/密码对,而是使用API密钥。

试试这个。它将解释如何使用api密钥来运行MQL。您将只需要获取freebase的apikey。不需要用户名或密码


谢谢!如果你不介意的话,你能告诉我如何将我从google获得的API添加到freebase login()中吗?举个例子会有帮助。如果我键入
ez_seutp freebase
就我所知,他们从未更新过freebase Python库,那么我应该得到新的API。您需要使用通用Python库来实现Google API,或者使用自己的。谢谢。我会调查的。