Python Tweepy API 数据

问题描述

我使用 Tweepy API 通过 ID 下载了一条推文。

api.get_status(tweet_id,trim_user = True,include_my_retweet = False,include_entities = False,include_ext_alt_text = False,tweet_mode='extended')

以下是 JSON 格式的部分结果:

Status(_api=<tweepy.api.API object at 0x11e1424f0>,_json={'created_at': 'Tue Aug 01 
16:23:56 +0000 2017','id': xxxxx,'id_str': xxxxx,'full_text': 
"This is Phineas. He's a mystical boy....

我想排除 Status(_api=<tweepy.api.API object at 0x11e1424f0>,_json= 并只选取以 {'created_at': 'Tue Aug 01 ....} 开头的部分。请告知如何执行此操作。

同样的过程将应用于 tweet_id 列表,并将所有推文存储在一个文本文件中。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)