1
How to get the media url for a particular image from a tweet status.

I am using python-twitter library 0.8. 
statuses = api.GetUserTimeline(count=1, include_entities=True)

Status structure provided by Twitter is 
   status.created_at
    status.created_at_in_seconds # read only
    status.favorited
    status.in_reply_to_screen_name
    status.in_reply_to_user_id
    status.in_reply_to_status_id
    status.truncated
    status.source
    status.id
    status.text
    status.location
    status.relative_created_at # read only
    status.user
    status.urls
    status.user_mentions
    status.hashtags
    status.geo
    status.place
    status.coordinates
    status.contributors

status.text 提供了 eimahe 文本和包含图像的 twitter 页面 url,但我有兴趣获取图像 url 本身。我在哪里可以得到那个?

4

1 回答 1

0

api 代码不包括 Status 对象中的媒体节点元素。我们可以覆盖库或修改和更新库的 git 存储库,以确保 Status 对象也包含媒体元素。

于 2012-04-20T03:20:15.947 回答