我期待找到跟隨數爲特定的用戶就像你如果你使用Instagram的API控制檯:試圖找到Instagram的API跟隨計數
from instagram.client import InstagramAPI
access_token = "Access Token"
api = InstagramAPI(access_token=access_token)
user_info = api.user(user_id)
print user_info
什麼我從API獲得當我搜索
{
"meta": {
"code": 200
},
"data": {
"username": "IGname",
"bio": "Comments,
"website": "http://instagram,
"profile_picture": "picture",
"full_name": "IGRealname",
"counts": {
"media": Number1,
"followed_by": Number2,
"follows": Number3
},
"id": "IGUserID"
}
我希望得到的用戶名user_ID的控制檯,如下,其次是場輸出到蟒蛇。
我所得到的只是用戶名,就是這樣。
這是計數陣列英寸在API控制檯中,我可以獲取所有我想要的信息,但是我不知道如何通過Python訪問相同的信息。這就是我要找的東西。對不起,如果我最初不清楚。 – Caveman1515 2014-10-13 12:49:31
好吧..我沒有在python練習..我無法幫到你。抱歉。 – 2014-10-14 03:16:28