[我正在使用Twitter API收集用户的推文和转发]
new_tweets = api.user_timeline(screen_name=screen_name, include_rts=True, max_id="oldest", max_count=1 ,truncated=False,tweet_mode = 'extended')
[我有tweet的全文,但转发的文本以“ ...”截短,我不知道其原因,尽管我使用了很多代码段来检索tweet和转推的全文] >
此代码检索转发(在try块内部)
outtweets = [[tweet.id_str, tweet.created_at,tweet.retweeted_status.full_text,tweet.retweet_count,tweet.favorite_count] for tweet in alltweets]
和此代码来检索tweet全文(除块内)
<< >outtweets = [[tweet.id_str, tweet.created_at, tweet.full_text, tweet.retweet_count, tweet.favorite_count] for tweet in alltweets]
假设我使用文本检索了多个属性,有谁可以帮忙吗?非常感谢,我已经阅读了Twitter API和tweepy文档,但是通过编码没有效果]
请提供方法。