tag_recent_media 中没有标签 return

No tags return from tag_recent_media

你好,我正在玩 python instagram API,我正在使用这个例子:

from instagram.client import InstagramAPI

access_token = "YOUR_ACCESS_TOKEN"
api = InstagramAPI(access_token=access_token)

recent_media, next_ = api.tag_recent_media( count = 20, max_tag_id = '', tag_name = 'cats' ) )

for media in recent_media:
    print media.tags  # attempt to get tags associated with each media

当我 运行 它时,有时它说媒体没有 "tags" 属性。但是我在搜索tag_recent_media,媒体怎么可能没有标签?

有什么想法吗?

谢谢!

也许媒体没有标签,而评论有标签?

尝试检查一下,因为 /recent 端点也会返回带有评论标签的媒体。