我正在使用Python-Freebase模塊的mqlread()。使用以下查詢:如何在使用Freebase API時從mqlread()獲取遊標?
query = [{
"cursor": True,
"id": None,
"type": "/games/game",
"mid": None,
}]
返回100個條目,但結果不包括「遊標」。如果你手動運行查詢,你會得到如下結果:
{ "code": "/api/status/ok", "cursor": "eNqFj8FqwzAQRD-mF4sisrtaaaWlhP6H8MHYNTUEW8hpKP36KjgU2kvnMoeZ4THjR923qhKS07wpAvR5VZbYBIL9sE76FDGAs-yCA_FISprL_nWUt5tC383L59ukh9llH_TvpL7Y7rYUdZ4CN9iRITB6vTwnAhriCAwAgXGO8Etkz48dicnvy3ptTGO6OwgsBwIfwJNeHpDWowgh_URO63-M0Z7vM0neGZNL3RrihBKFU_uZS2l3sT-9cpIBaRrnOE8JhaAhQL4B9ZFRmg==", "result": [
{
"id": "/en/cities_and_knights_of_catan",
"mid": "/m/02hq3",
"type": "/games/game"
},
....
其中包含「遊標」。但從結果:
freebase.mqlread(query, extended=True)
返回結果:
[{u'type': u'/games/game', u'id': u'/en/cities_and_knights_of_catan'}, ...
剝離了 「代碼」 和 「光標」。我怎樣才能得到「光標」?