3

我正在开发一个 twitter 客户端,我正在使用 tweepy,但是我无法在 user_timeline 中获取实体。我怎样才能获得实体?有人更新了 Tweepy for AppEngine 库吗?

4

2 回答 2

2

tweepy wiki

# Iterate through the first 200 statuses in the friends timeline
for status in tweepy.Cursor(api.friends_timeline).items(200):
    # Process the status here
    process_status(status)
于 2011-11-15T15:06:37.680 回答
1

您需要提供include_entities = True

api.user_timeline(include_entities = True).

默认情况下未将其设置为 true 的原因是,实体后来被添加到 Twitter API 中,因此后来被添加到 Tweepy 中。

于 2012-12-15T23:57:21.327 回答