【发布时间】:2014-09-25 17:39:14
【问题描述】:
我试图找到有关 Twitter 对象结构的信息,例如 Tweepy api.followers。粗略一看,我以为是json,但不是。它以User(follow_request_sent=False, profile_use_background_image=True 开头。有谁知道 Tweepy 中是否有某种脚本或函数可以解析这个对象?
我正在使用for page in tweepy.Cursor(api.followers, screen_name="user").pages():
然后是ids.extend(page),其中id 只是一个列表。然后我做
for id in ids:
print id
我不确定这是否正确。无论如何,我想离线解析每个返回的id。
【问题讨论】:
标签: python json twitter tweepy